-
March 29th, 2005, 05:12 PM
#1
Junior Member
FreeBSD/sshd question
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, 05:20 PM
#2
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.
Oliver's Law:
Experience is something you don't get until just after you need it.
-
March 29th, 2005, 06:55 PM
#3
Junior Member
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, 07:29 PM
#4
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, 10:23 PM
#5
Junior Member
Ok thanks a bunch I will try it out when I get home.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|