Few steps to check when login operation (or sudo) is successful but takes long time:
- check /etc/hosts file (especially, if you have line with 127.0.0.1, and entry with the host itself)
- check/change the following option to no in /etc/ssh/sshd_config file
- GatewayPorts
- GSSAPIAuthentication
- UseDNS
- restart sshd with systemctl restart sshd
- systemctl restart systemd-logind (that can also from time to time stuck)
- check free space in your root (log) directory
- if system is connected to AD, check network (firewall) blocks
No Comments