Problem Port Forwarding SSH to Non-Standard Port

Discussion in 'Mac OS X Lion (10.7)' started by Meyerr, Mar 28, 2012.

  1. Meyerr macrumors newbie

    Joined:
    Jul 19, 2008
    #1
    I have an Airport Extreme router and have enabled SSH sharing in system preferences. When I go to Airport Utility-->Network-->Port Mapping, and put in these settings:

    Remote Login - SSH
    Public UDP Ports: 22
    Public TCP Ports: 22
    Private IP Address: 10.0.1.5
    Private UDP Ports: 22
    Private TC Ports: 22

    I'm able to ssh with no problem. However, if I want to use a non-standard port (I've tried several different port numbers), something like this:

    Remote Login - SSH
    Public UDP Ports: 2222
    Public TCP Ports: 2222
    Private IP Address: 10.0.1.5
    Private UDP Ports: 2222
    Private TC Ports: 2222

    and then SSH using ssh -p 2222 ...

    I get: ssh: connect to host ... port 2222: Connection refused


    What am I doing wrong?
     
  2. dknightd macrumors 6502

    Joined:
    Mar 7, 2004
    #2
    You either need to have sshd listen to your new port 2222,
    or, use standard port 22 for private ports
     
  3. Meyerr thread starter macrumors newbie

    Joined:
    Jul 19, 2008

Share This Page