sign_and_send_pubkey: signing failed: agent refused operatio

New to Debian (Or Linux in general)? Ask your questions here!

sign_and_send_pubkey: signing failed: agent refused operatio

Postby 1byte » 2017-10-07 12:21

I have Debian Stretch 64bit install on both PC's,
all up to date and when I want to log in with only ssh keys to the other machine
and copy the keys in with [ssh-copy-id -i ~/.ssh/id_rsa.pub "root@123.221.123.221 -p22"]
all works ok, the key gets copied, I log out but when trying to log in in back to 123.221.123.221
I would get this error msg.:
sign_and_send_pubkey: signing failed: agent refused operation
and the machine would ask me for password again.

In the past this method has worked for me on Debian 8 and 7, has anything changed?


As suggested in post here
https://stackoverflow.com/questions/442 ... -operation
I have tried, but without a luck:

$ ssh-add
Identity added: /home/donald/.ssh/id_rsa (rsa.4096@E7270)

$ ssh-add -l
4096 SHA256:G6YSC......................................................bk rsa.4096@E7270 (RSA)
4096 SHA256:G6YSC......................................................bk rsa.4096@E7270 (RSA)

$ ssh optiplex
sign_and_send_pubkey: signing failed: agent refused operation
sign_and_send_pubkey: signing failed: agent refused operation
donald@123.221.123.221's password:
1byte
 
Posts: 19
Joined: 2017-07-16 06:51

Re: sign_and_send_pubkey: signing failed: agent refused oper

Postby 1byte » 2017-10-07 14:24

I have found solution over here:
https://help.github.com/articles/error- ... publickey/

eval "$(ssh-agent -s)"
and then the SSH works,

When I close the terminal window and open it again, if I do not run [eval "$(ssh-agent -s)"] then
I get asked for password, but if I run the command first and then ssh into another machine
it would log in without a password.

Is there any way to get this command executed automatically when I open terminal?

I have for now created alias:
cd #
nano .bashrc
alias s='eval "$(ssh-agent -s)"'


But is there a way to not to executed the command on every start of the terminal?
1byte
 
Posts: 19
Joined: 2017-07-16 06:51

Re: sign_and_send_pubkey: signing failed: agent refused oper

Postby 1byte » 2017-10-07 14:39

Strange is that if I execute ssh-add -l or ssh-add -l -E md5 I would get "The agent has no identities."


$ ssh-add -l
The agent has no identities.


$ ssh-add -l -E md5
The agent has no identities.
1byte
 
Posts: 19
Joined: 2017-07-16 06:51


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable