It's been two weeks that
ssh login, logout and using
su to other users on a CentOS 6.8 server been very slow, it takes around 20 seconds to 45 seconds for the login or logout or su to take effect. All my other servers are working fine, just three of my servers with same usage been affected by this problem.
GSSAPIAuthentication are equal to
/var/log/secure are empty as well since 2 weeks ago and nothing writes to these two files. The
rsyslog.conf is on its defaults configuration and nothing been modified on the configuration file but all of a sudden nothing been writing on these two files.
When I use
crontab -e it takes around 15 seconds to open the file, and it's empty.
ssh -vvv user@host from a different system to connect to this problematic server. After I insert the password it waits 30 seconds on the following lines then logs in:
debug3: packet_send2: adding 48 (len 70 padlen 10 extra_pad 64) debug2: we sent a password packet, wait for reply debug3: Wrote 144 bytes for a total of 1709 debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug3: ssh_session2_open: channel_new: 0 debug2: channel 0: send open debug1: Requesting firstname.lastname@example.org debug1: Entering interactive session. debug3: Wrote 128 bytes for a total of 1837
CPU and Memory usage are all normal on the system. The
uptime command shows
16:58:44 up 12 days, 4:21, 5 users, load average: 0.22, 0.23, 0.26.
The disks are fine and there is lots of free space.
Any ideas what's causing the slow ssh login, logout and su?