When I'm ssh'd into my server, any time I enter my password, there's a 40 second delay before the server responds.
This occurs when logging in, as well as whenever I run a command via sudo. The delay does not happen when I run su and enter my password however.
Using the -v flag for ssh doesn't show anything during this time. Looking at Wireshark, all traffic between the two machines stops while this is happening.
Any idea what's happening, or advice on how to investigate this?
The server is running Debian squeeze (6.0.4)
Edit: contents of /etc/nsswitch.conf
passwd: compat
group: compat
shadow: compat
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
Edit 2: result of mount
/dev/simfs on / type simfs (rw,relatime,usrquota,grpquota)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime)
pamandldapunder/etc. Does that tell you anything useful? – Dean Jul 10 '12 at 2:38/etc/passwdauth. If you could edit and post your/etc/nsswitch.confit would answer this. – Paul Jul 10 '12 at 3:10