Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Meyerr

macrumors newbie
Original poster
Jul 19, 2008
13
0
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?
 

dknightd

macrumors 6502
Mar 7, 2004
334
1
You either need to have sshd listen to your new port 2222,
or, use standard port 22 for private ports
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.