March 29th, 2005, 04:12 PM
I am trying to set up a remote sshd on my FreeBSD box. I want this so I can connect to my *nix box from school when I only have my laptop. I am having trouble finding information on how to do this. Can someone give me a little help with this? I am running FreeBSD 5.3 and have a Linksys router at home. I would like to keep it off of port 22 though.
March 29th, 2005, 04:20 PM
Add sshd_enable="YES" to your /etc/rc.conf. That should take care of the FBSD machine.
Edit /etc/ssh/sshd_config if you want to run it on an other port.
See the FreeBSD Handbook for more information.
Edit: You probably need to configure your linksys router so it'll forward the port to your FBSD machine.
Edit2: You can leave the sshd running on port 22 and configure the linksys so it'll forward port 12345 i.e. to port 22 on your FBSD machine. No idea how to do this on a linksys. Should be easy though. It's basicly the same as setting up a web or game server behind the linksys, just different ports.
Experience is something you don't get until just after you need it.
March 29th, 2005, 05:55 PM
What should the ip 0.0.0.0 be set to. Should this be the external ip or 127.0.0.1 or the internal ip of the machine.
March 29th, 2005, 06:29 PM
Need to set it to the internal IP of the machine.
ssh client - > router IP on port x
router Nats port x -> sshd machine on port 22
sshd machine listens on port 22
March 29th, 2005, 09:23 PM
Ok thanks a bunch I will try it out when I get home.