Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

What am I missing? I change the root password on a unix machine, then try to log in with that password. PasswordAuthentication is set to yes in sshd_config and the sshd daemon has been restarted. This behavior happens whether I log in remotely or locally:

root@ip-10-0-0-155:~# passwd
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
root@ip-10-0-0-155:~# ssh root@127.0.0.1
root@127.0.0.1's password: 
Permission denied, please try again.
root@127.0.0.1's password:
share|improve this question

migrated from stackoverflow.com Aug 18 '12 at 11:02

This question came from our site for professional and enthusiast programmers.

2  
Some systems do not allow root login have to verified that? –  Rohan Aug 18 '12 at 6:41
    
make sure of your ip's which you have changed the password and trying to re-login are the same ip's. –  THANGA Aug 18 '12 at 6:44
    
Check root login permission: grep -i permitroot /etc/sshd_config. –  Видул Петров Aug 18 '12 at 6:49
    
This is not necessarily a good idea... –  Alex Chamberlain Aug 18 '12 at 18:11

1 Answer 1

Check this file: /etc/ssh/sshd_config and search for the line:

PermitRootLogin no

replace it by:

PermitRootLogin yes
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.