使用SSH密鑰配置新的數字海洋液滴。當我運行ssh-copy-id
這是我得到:sign_and_send_pubkey:簽名失敗:代理拒絕操作
ssh-copy-id [email protected]
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
sign_and_send_pubkey: signing failed: agent refused operation
[email protected]'s password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh '[email protected]'"
and check to make sure that only the key(s) you wanted were added.
然而,當我再嘗試用ssh的,出現這種情況:
ssh [email protected]
sign_and_send_pubkey: signing failed: agent refused operation
[email protected]'s password:
當輸入了密碼,我登錄就好了,但這當然會首先破壞創建SSH密鑰的目的。我決定去看看SSH代理服務器端和這裏就是我得到:
[email protected]:~# eval `ssh-agent -s`
Agent pid 5715
[email protected]:~# ssh-add -l
The agent has no identities.
用戶/的.ssh/authorized_keys中確實包含一個支持SSH-RSA密鑰條目,以及,但find -name "keynamehere"
回報什麼。
geez,花了兩個小時試圖解決這個問題,這就是它!修復了bitbucket和acquia ssh連接 – Ronnie
它並沒有完全解決它,因爲我使用'gpg-agent'進行SSH功能。我已經在'gpg-agent.conf'中有'enable-ssh-support',但仍然有相同的錯誤信息。我發現在郵件列表上運行:'gpg-connect-agent updatestartuptty/bye':https://bugs.debian.org/cgi-bin/bugreport.cgi?bug = 835394 – Roland
我只好殺了gpg - 然後再運行它。 – Subin