-1

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 .

  • 3
    I suspect that either you have got the password wrong, or the sshd server setup on 10.0.2.15 does not allow a root ssh logon. See /etc/sshd_config and look at the PermitRootLogin parameter. The default on my system prevents root from logging in via a password. – Nick Sillito Jan 22 '17 at 10:23
  • I changed the PermitRootLogin to yes and it still will not let me login. – ebatinstitute Jan 22 '17 at 11:11
  • Remote machine is running Ubuntu? If yes, have you created a root password? Ubuntu root account is disabled by default check this. – dgonzalez Jan 23 '17 at 02:31

2 Answers2

0

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.

Muhamed Huseinbašić
  • 1,258
  • 3
  • 14
  • 19
0

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.

loongyh
  • 188