Under the root is authorized by the key. Under a normal user, a password is required despite the presence of a key in /home/user/.ssh/authorized_keys.
Extract from / etc / ssh / sshd_config on the server:
RSAAuthenticattion yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh / authorized_keys
PasswordAuthentication no
Tell me what could be the problem? Where to dig?

  • I'll ask just in case: does it allow me with a password? - ArcherGodson
  • with a password starts up. - Semyon Ledovsky
  • It seems to me that @Anton Shevtsov asked a question suggestive of a problem, probably it needs to be noted) - ArcherGodson

1 answer 1

What are the rights to ~/.ssh и ~/.ssh/authorized_keys ? And input ssh -vv user@server here

  • ~ / .ssh 700 ~ / .ssh / authorized_keys 600. Conclusion here: yadi.sk/d/GwTyObJL8dQZi - Semyon Ledovsky
  • output 142 bytes? And throw you to use okuppatsionnyy yandeks.disk - pastebin.com thats all - Anton Shevtsov
  • please pastebin.com/D7gkb8wR - Semyon Ledovsky
  • one
    in / var / log / auth or / var / log / secure, what about this? I think you just inserted the key incorrectly. - zb '
  • one
    Remote: Ignored authorized keys: bad directory or directory / home / user - Anton Shevtsov