Remote Login

Discussion in 'Mac Basics and Help' started by redneon, Jul 24, 2006.

  1. redneon macrumors member

    Joined:
    Apr 27, 2006
    #1
    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?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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).
     
  3. Nermal Moderator

    Nermal

    Staff Member

    Joined:
    Dec 7, 2002
    Location:
    New Zealand
    #3
    And make sure you don't have a router in the way.
     
  4. redneon thread starter macrumors member

    Joined:
    Apr 27, 2006
    #4
    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.
     

Share This Page