Screenshot of the problem here
ssh root@10.0.2.15
root@10.0.2.15's password:
Permission denied,please try again .
I'm not allowed to use the ssh root@10.0.2.15
,for some reason it won't let me do that .
Screenshot of the problem here
ssh root@10.0.2.15
root@10.0.2.15's password:
Permission denied,please try again .
I'm not allowed to use the ssh root@10.0.2.15
,for some reason it won't let me do that .
You are seeing permission denied problem because you are maybe typing wrong password for root user. For example:
ssh root@103.28.71.20
Permission denied, please try again.
root@103.28.71.20's password:
Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 2.6.32-042stab113.17 x86_64)
* Documentation: https://help.ubuntu.com/
Last login: Fri Jan 20 07:28:57 2017 from 109.175.99.154
In the first login prompt, I intentionally typed wrong password and got the response as you have. In the second one, I typed correct password and managed to login.
If you are sure the password is correct, this situation can also happen if user root is locked. In that case, there is no correct password for it, since no password is set for that user.
If you have access to user other than root, try logging in with it. If not, access that host somehow else and create another user or set the password for root (from my experience, it is better to use other users).
EDIT: As suggested by Nick Sillito in the comment, it is also possible that it is forbidden to ssh using root. Check your settings as suggested.
Take note that the password for the root user is unset by default, and it is different from the user you created on installation.
Since you have permitted root login in your config, do make sure you have also set the password for root.
sudo -u root passwd
Let me know if this solves the issue.
PermitRootLogin without-password
and restarted the sshd service: sudo systemctl restart sshd.service
– loongyh
Jan 22 '17 at 12:11
ssh: connect to host 10.0.2.15 port 22: Connection refused
– ebatinstitute
Jan 22 '17 at 12:22
sudo systemctl status sshd.service
?
– loongyh
Jan 22 '17 at 12:34
PermitRootLogin
parameter. The default on my system prevents root from logging in via a password. – Nick Sillito Jan 22 '17 at 10:23