Results 1 to 5 of 5

Thread: FreeBSD/sshd question

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    27

    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.
    ~Tek~

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    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.

  3. #3
    Junior Member
    Join Date
    Oct 2004
    Posts
    27
    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.
    ~Tek~

  4. #4
    Senior Member
    Join Date
    Jul 2004
    Posts
    469
    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

  5. #5
    Junior Member
    Join Date
    Oct 2004
    Posts
    27
    Ok thanks a bunch I will try it out when I get home.
    ~Tek~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •