N
N
Nikit_adw2018-02-14 09:37:25
linux
Nikit_adw, 2018-02-14 09:37:25

Problem with ssh connection?

Problem here in what: It is
necessary to be hooked on vds by means of rsa a key on ssh. Everything is done as it should: the key is generated, put in authorized_keys on the server, but the problem is that with the ssh [ip] -p 20222 -l user command
I get:
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
but with ssh [ip] -p 20222 -l user -i /home/user/.ssh/id_rsa (specifying an explicit path to my half of the key)
everything hooks up perfectly.
The debug says
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/user/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
Log says:
Feb 14 00:28:15 ubuntu sshd[5769]: Connection closed by 176.48.67.251 port 34142 [preauth]
What's the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Papa, 2018-02-14
@Nikit_adw

ssh add?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question