T
T
Tyrion Lannister2017-07-08 23:35:54
SSH
Tyrion Lannister, 2017-07-08 23:35:54

Why can't I connect via SSH?

The key on the server in ~/.ssh/authorized_keys is identical to the key on my machine in ~/.ssh/id_rsa.pub.
Writes:

sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
4
4X_Pro, 2017-07-09
@XXXXPro

Most likely, the rights to the file with the key are incorrect. They should be equal to 600 (and it is desirable to put 700 on the .ssh directory), i.e. the file is not available to anyone except the owner (by default, when creating a file, 640 is usually set), the owner of the file must be the user under which the connection is made.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question