Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: SSH help

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    SSH help

    I have an ssh server setup at home. I opened a port for it on my router: port 22 inbound and port 5500 to the public. Now I'm at school and can't connect to the computer at home. I tried ssh -p 5500, but nothing happens. The router at home should re-direct incoming port 5500 to port 22 and then to the ssh server. Could it be something that gets stuck when the server tries to send data back? The firewall here has port 22 (in and out) opened.

    Fast answers are appreciated.

  2. #2
    Just Joined!
    Join Date
    Jan 2005
    Toronto, ON, Canada
    You have to be sure that the router does:

    If packet is incoming(from internet you can figure out this by the dest IP segment) and dest_port == 5500
        NAT the packet's destination info --> router_IP:5500 to SSH_server_IP:22
    If  packet is outgoing(from internet you can figure out this by the src IP segment) and src_port == 22
       NAT the packet's source info -->  SSH_server_IP:22 to router_IP:5500

Posting Permissions

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