V
V
Vasya2018-05-28 08:00:13
linux
Vasya, 2018-05-28 08:00:13

Why doesn't Linux Red Hat authorize with ssh key?

SOLVED
ssh -v [email protected]
It was a matter of permissions to the .ssh folder
Must be 700
Version linux red hat 7.3
Protocol ssh seems to be the second Protocol 2
is written in /etc/ssh/sshd_config On the win7 locale generated the key ssh-keygen -t rsa - b 4096 -C "email" Threw the contents of id_rsa.pub into ~/.ssh/authorized_keys Restarted the sshd service. I connect ssh [email protected] Does anyone know what is the reason for this? Or where to dig No errors, it asks for a password. The config also says RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasya, 2018-05-28
@haramba

ssh -v [email protected] We execute in the client
It was the rights to the .ssh folder
Should be 700 for the folder, and 600 for the key file
On the server, you can watch tail /var/log/secure

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question