How to know if my SSH authentication is slow?
As a general way to investigate a slow authentication, check /etc/pam.conf and /etc/pam.d/su (and /etc/pam.d/sshd etc.) to see what kind of authentication the login services perform. Check the system logs to see if anything is logged (look for log entries dating from the time of the authentication).
What happens when you run Su or sudo?
When you run sudo or su, their setuid bit is set, so the process’ effective user becomes root, then they do the authentiaction already as root! If it fails they exit. Note the difference: rwx before, rws after. In my case, it was because the entry for that user was missing in /etc/shadow.
Do you need a root password to run Su?
It’s usage (simplified): When omitting username, the username default to root. Since the root password is disabled by default on Ubuntu, no password will be valid. The preferred way to run root commands is not through a su shell, but with sudo as in:
What to do when Su asks for password in Ubuntu?
Instead, to become root, use sudo -i with your personal password. su asks for the password of the account you’re trying to login. It’s usage (simplified): When omitting username, the username default to root. Since the root password is disabled by default on Ubuntu, no password will be valid.
Is there a SSH issue on my router?
1) By saying managerment server, I am guessing you have an ACL on which devices can SSH to your router. Have you try another host? If i’ve ACL configured it should block completely but iam able to login to the router via SSH issue is its very slow , i’ve verified ACL but there is none
How to debug a problem with SSH or SU?
My way to debug this issue: 1. login as problem user 2. invoke “bash –login –verbose” 3. Find out line, which stops the executions 4. Find this line in one file from /etc/profile.d/
Why is my SSH connection taking so long?
Especially the GSSAPI-WITH-MIC is taking a long time…let’s disable it: Now change the “GSSAPIAuthentication yes” line to “GSSAPIAuthentication no”. Restart SSH and try to connect again: With GSSAPI disabled it’s flying!