Y
Y
Yuri2018-10-27 16:36:22
SSH
Yuri, 2018-10-27 16:36:22

How to add a key to a remote server to connect via ssh without a password?

Greetings!
Tell me, please, what could be the reason that you cannot connect to the server without a password via ssh?
I have several users on the server, under which I connect via ssh, but there is a user for whom I cannot configure it so that there is no need to enter a password.
I generated the key, set the public key on the server with the ssh-copy-id command, enter the password, everything is successful, there are no errors, but when connecting, you need to enter the password.
For other users, I did the same actions and everything is fine with them, the password is not required after that.
It's also funny that I used to connect under this user without a password, but at some point, about a month ago, it became mandatory for him.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2018-10-27
@Winter_Silence

You can guess for a long time. It's worth looking at the openssh logs on the server.
You can also check that in ~/.ssh/authorized_keys and the rights to it, at the same time. Should be read/write only for the owner.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question