Sign up ×
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@
root@'s password: 
Permission denied, please try again.
root@'s password:
share|improve this question

migrated from Aug 18 '12 at 11:02

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

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

3 Answers 3

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

PermitRootLogin no

replace it by:

PermitRootLogin yes
share|improve this answer
Tough if you can't log in as root - having the same problem – Bysander Jul 1 at 8:52
This is the solution, but security wise, there are probably some better options.. – ringø Oct 1 at 15:45

I had the same problem and I solved it.

My keyboards were not configured in the same manner between an ssh console and the server's keyboard. The key + on my numpad was, in fact, the =; but I never find out why.

Check if you enter the same characteres.

share|improve this answer

You are logging in to localhost with ssh. This is usually not necessary and may carry some overhead. Try

su -

in a terminal and enter the password.

share|improve this answer

Your Answer


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