Sudo commands are very slow in VM [closed]
I have launched an instance running ubuntu in openstack. As the default login for the image is "ubuntu" i use a key-pair to login to the instance.
ssh -i key.pem ubuntu@10.x.x.x
however when i run any command that requires sudo permission it takes more than a minute to get executed. What could be the reason to this issue?
I tried creating another user, so that i can log into the system as that user with the login and password. But sadly, even that does not work.
I created another user 'abc' and entered password 'xxx'
when i try ssh abc@10.x.x.x
it gives, permission denied(public key) error.
Perhaps sudo spends a lot of time waiting for hostname resolution. There are quite a few articles on the internet about this.
You are unable to log on as user abc because the SSH daemon doesn't permit password login. You can give abc a key, or allow password login in /etc/ssh/sshd_config.
@Bernd Bausch thanks for the reply. Hostname resolution solved this issue