Why is it so slow to log in after changing the root username and waiting 26 seconds
Why is it so slow to log in after changing the root username and waiting 26 seconds
hi,all
Why is it so slow to log in after changing the root username and waiting 26 seconds
thanks
Why is it so slow to log in after changing the root username and waiting 26 seconds
thanks
Re: Why is it so slow to log in after changing the root username and waiting 26 seconds
Why have you changed the root username in the first place? In more than 20 years of doing this, I've never felt the need to do that.
However, I suspect it has nothing to do with the change.. How are you logging into the machine? Is it over ssh? If so then this sounds like you have an unresponsive nameserver listed in /etc/resolv.conf as ssh does a reverse lookup of the ip address being used to connect and the timeout is 30s.
However, I suspect it has nothing to do with the change.. How are you logging into the machine? Is it over ssh? If so then this sounds like you have an unresponsive nameserver listed in /etc/resolv.conf as ssh does a reverse lookup of the ip address being used to connect and the timeout is 30s.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Why is it so slow to log in after changing the root username and waiting 26 seconds
I logged in via SSH because I didn't want the superuser to be exploited by network attackers, I tried to change the superuser back to root, which logged in very quickly
Re: Why is it so slow to log in after changing the root username and waiting 26 seconds
Do you have a Match stanza in sshd_config that also tells it UseDNS No?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Why is it so slow to log in after changing the root username and waiting 26 seconds
Yes, the default is UseDNS No
Re: Why is it so slow to log in after changing the root username and waiting 26 seconds
No, the default setting is UseDNS yes. If you haven't changed it then it will be in effect. And the question is if you have a Match stanza that overrides it for a partition group or user that might include root but not you new name.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Why is it so slow to log in after changing the root username and waiting 26 seconds
Yes, how to explain why logging in is slow after changing root?
Re: Why is it so slow to log in after changing the root username and waiting 26 seconds
So you changed the root user-name from root to <something_else> and then it was "really slow" to login. You then renamed <something_else> to root and login performance was restored. Correct?
Assuming so:
a) Don't do that.
b) How did you rename root? Did you remember to change all the various paths and nuances from root to <something_else>? I guess not.
c) See a.
Assuming so:
a) Don't do that.
b) How did you rename root? Did you remember to change all the various paths and nuances from root to <something_else>? I guess not.
c) See a.
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Why is it so slow to log in after changing the root username and waiting 26 seconds
Just don't rename root.
Just set in sshd' config 'PermitRootLogin no' and you will be OK.
The defaults for sshd are prety good.
Just set in sshd' config 'PermitRootLogin no' and you will be OK.
The defaults for sshd are prety good.