Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

sign_and_send_pubkey: signing failed: agent refused operatio

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
1byte
Posts: 59
Joined: 2017-07-16 06:51

sign_and_send_pubkey: signing failed: agent refused operatio

#1 Post by 1byte »

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: 59
Joined: 2017-07-16 06:51

Re: sign_and_send_pubkey: signing failed: agent refused oper

#2 Post by 1byte »

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: 59
Joined: 2017-07-16 06:51

Re: sign_and_send_pubkey: signing failed: agent refused oper

#3 Post by 1byte »

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.

Post Reply