SSH login very slow after upgrading from 12.04 to 13.04 Ubuntu server
After upgrading Ubuntu server on my nas from 12.04 to 13.04 ssh login became slow again. In 12.04 I was able to solve the problem by adding UseDNS no to /etc/ssh/sshd.conf file. This time, the solution above won't help, the string is there, tried moving it from the bottom of the file to the top. SSH login still takes about 10 seconds before it prompts for a user name. Tested from 3 different comps, 2 pcs, 1 mac.
In addition to UseDNS no I found few other suggestions and applied them as well:
in /etc/ssh_config added - AddressFamily inet
Set: GSSAPIAuthentication no GSSAPIDelegateCredentials no
Another attempt was commenting out the two above, no difference, login is still delayed.
In /etc/nsswitch.conf
Changed hosts to - hosts: files dns
None of the above helps, all of the changes are in the respective files at the moment.
Debugging using ssh -vvv shows the following:
ssh -vvv -l zvi gatornas -p 2725
OpenSSH_5.9p1, OpenSSL 0.9.8x 10 May 2012
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to gatornas [192.168.0.194] port 2725.
debug1: Connection established.
debug1: identity file /Users/Zvio/.ssh/id_rsa type -1
debug1: identity file /Users/Zvio/.ssh/id_rsa-cert type -1
debug1: identity file /Users/Zvio/.ssh/id_dsa type -1
debug1: identity file /Users/Zvio/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.1p1 Debian-4
The delay happens between last 2 lines of the log above, about 10 seconds before "debug1: Remote protocol version 2.0..." gets displayed, the rest is instantaneous.
The only thing I did after upgrade, installed nfs-kernel-server package, because I wanted to enable nfs sharing. Disabling nfs-kernel-server doesn't help with ssh login, disabled anyway, trying to narrow down the problem.
Well, I had to add zfs ppa and upgrade zfs-ubuntu package, but I suppose that's not related.
At this point I am out of options. Any help would be highly appreciated.
After upgrading Ubuntu server on my nas from 12.04 to 13.04 ssh login became slow again. In 12.04 I was able to solve the problem by adding UseDNS no to /etc/ssh/sshd.conf file. This time, the solution above won't help, the string is there, tried moving it from the bottom of the file to the top. SSH login still takes about 10 seconds before it prompts for a user name. Tested from 3 different comps, 2 pcs, 1 mac.
In addition to UseDNS no I found few other suggestions and applied them as well:
in /etc/ssh_config added - AddressFamily inet
Set: GSSAPIAuthentication no GSSAPIDelegateCredentials no
Another attempt was commenting out the two above, no difference, login is still delayed.
In /etc/nsswitch.conf
Changed hosts to - hosts: files dns
None of the above helps, all of the changes are in the respective files at the moment.
Debugging using ssh -vvv shows the following:
ssh -vvv -l zvi gatornas -p 2725
OpenSSH_5.9p1, OpenSSL 0.9.8x 10 May 2012
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to gatornas [192.168.0.194] port 2725.
debug1: Connection established.
debug1: identity file /Users/Zvio/.ssh/id_rsa type -1
debug1: identity file /Users/Zvio/.ssh/id_rsa-cert type -1
debug1: identity file /Users/Zvio/.ssh/id_dsa type -1
debug1: identity file /Users/Zvio/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.1p1 Debian-4
The delay happens between last 2 lines of the log above, about 10 seconds before "debug1: Remote protocol version 2.0..." gets displayed, the rest is instantaneous.
The only thing I did after upgrade, installed nfs-kernel-server package, because I wanted to enable nfs sharing. Disabling nfs-kernel-server doesn't help with ssh login, disabled anyway, trying to narrow down the problem.
Well, I had to add zfs ppa and upgrade zfs-ubuntu package, but I suppose that's not related.
At this point I am out of options. Any help would be highly appreciated.
No comments:
Post a Comment