NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

joe_schmo's avatar
Jun 02, 2018

Slow login

I have an RN316, a 428, and an Ultra4.

 

On the 428 and the Ultra4, when I SSH in via Putty, I put i nmy username and then immediately, the password prompt appears.

 

With the RN316, it takes up to 30 seconds for it to appear. 

Does anyone know what could cause the system to be slow like this?

11 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User

    Do you have disk spindown enabled on the RN316?

    • joe_schmo's avatar
      joe_schmo
      Tutor

      Nope... although that would have been awesome if it were the case :)

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        Once you do get in, perhaps run top and see if something is hogging the CPU.  Maybe also check the disk health, and the fullness of the OS partition.

  • Do you have the NAS joined to AD or did you ever have it joined to AD? I never really investigated it further but my NAS is doing the same and I seem to recall it started happening after I joined the NAS to AD, despite having now switched back to 'Local Users'.

     

    Don't know if I'm just imagining things but at least I think that's when it started.

    • Danthelf's avatar
      Danthelf
      Star

      For the sake of it I decided to look in to this further, so in order to find out what was going on I did a packet capture while logging in. The reason for the slowness is because the SSH server will attempt to do a reverse DNS lookup the hostname of the client you're connecting from before presenting you with the password prompt, so if your DNS settings are misconfigured it will have to wait for that to timeout before presenting you with the password prompt.

       

      The reason why I found this to be related to me joining the NAS to my AD domain is simply because at the time I modified my DNS settings to use:

      1) My DC's IP

      2) google DNS

       

      My DC is currently turned off (this is a home lab) so of course it will not respond to DNS queries. Removing it from the list of DNS servers resolved the issue and logins are now instant.

       

      You can also stop the ssh server from attempting lookups by adding "UseDNS no" to your sshd_config

       

      # echo "UseDNS no" >> /etc/ssh/sshd_config
      # systemctl restart ssh

       

       

       

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        Thx for posting the root cause and solution to your problem :smileyhappy:

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More