ssh MacBook to Linux has Very Slow Login

Discussion in 'macOS' started by reedw, Dec 16, 2009.

  1. reedw macrumors newbie

    Joined:
    Dec 9, 2009
    #1
    ssh login from my 10.6.2 mac to a linux system is extremely slow -- about a minute to get the login prompts. In comparison, ssh login to the same linux machine from putty.exe on Windows XP is almost instantaneous.

    I have tried adjusting the parameters on both client and host, without much improvement. However, the "1" protocol level seems a little faster. I have setup the keys ("2" level), and that works (without need for pasword), but is still very slow.

    I installed putty from macports onto the mac. I got it to work using the "1" protocol level, but it is just as slow as from the terminal command line.

    All of the above tests were done on a local network with addresses like 192.168.0.102, so I don't think DNS is a factor.

    Anybody have any ideas why the mac is so slow.

    Thanks ... Reed
     
  2. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #2
    It could still be a DNS issue. Most tcp/ip connection code, including ssh, will first try a DNS lookup even it it is in the form 192.168.0.102. When it fails out of the DNS lookup, it then tries it as a numerical address.
     
  3. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #3
    Add:
    Code:
    UseDNS No
    to the sshd config files and restart the daemons.
     

Share This Page