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

redneon

macrumors member
Original poster
Apr 27, 2006
77
0
I enabled Remote Login under System Preferences to allow myself to SSH to my Mac externally but when I do "ssh -l UserName myIPAddress" I get an error that says "Connection closed by myIPAddress". It doesn't even ask for my password.

I'm obviously missing something but I can't think what it could be.

Any ideas?
 
ssh is not telnet. Do ssh username@hostname instead. Also check the version of the ssh protocol your client is using. It will probably need to be 2.x. Also check that your Mac automatically punched a hole in the firewall for you (it normally does).
 
robbieduncan said:
ssh is not telnet. Do ssh username@hostname instead. Also check the version of the ssh protocol your client is using. It will probably need to be 2.x. Also check that your Mac automatically punched a hole in the firewall for you (it normally does).

As far as I'm aware ssh -l is the ssh standard, not username@hostname. Either way, it gives me the same result, though :)

The Mac did enable remote login on the firewall and I'm using OpenSSH 4.3 which should be compatible. Plus, even if I launch a terminal and try and connect via the local address I get the same problem.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.