Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • Can you paste sshd_config in your question ? Commented Jul 12, 2017 at 9:40
  • I did it. By the way, I already uncommented AuthorizedKeysFile line, changed the path, etc... Commented Jul 12, 2017 at 9:44
  • 1
    You have "PermitRootLogin No" in your sshd_config. This might prevent you from logging in as root, as you seem to be trying. (Note that it's almost always a bad idea to turn this on, it's better to use normal users.) Commented Jul 12, 2017 at 9:48
  • I commented the line PermitRootLogin no and I uncommented the line PermitRootLogin without-password, I restart ssh service with /etc/init.d/ssh restart but still asking me the password. Do I have to reload something else ? By the way, I accept to connect with my other user called "user" but same error. Commented Jul 12, 2017 at 9:51
  • 1
    AllowUsers user This will allow only user to log in. Commented Jul 12, 2017 at 11:10