git新增遇到問題 sign and send

2021-10-02 22:37:06 字數 2338 閱讀 7569

sign_and_send_pubkey: signing failed: agent refused operation

permission denied (publickey).

ssh-keygen -t rsa -c "

***[email protected]

"

在本地生成 rsa 公私鑰。直接回車。名稱必須是預設的id_rsa

將公鑰儲存到 github / gitee

ssh -t [email protected]

如果正常會返回

hi ***! you've successfully authenticated 之類的

當然我們這裡遇到的是

sign_and_send_pubkey: signing failed: agent refused operation

permission denied (publickey).

此時我們可以執行如下命令:

ssh -vt [email protected]

如果看到以下permission denied (publickey) 結尾

openssh_7.2p2 ubuntu-4ubuntu2.1, openssl 1.0.2g  1 mar 2016

debug1: reading configuration data /etc/ssh/ssh_config

124.116.152.172] port 22

.debug1: connection established.

......

debug1: expecting ssh2_msg_kex_ecdh_reply

debug1: server host key: ssh-rsa

sha256:jok3fh7q5lj6qve7ipnehbgxrw51ere77s0dn+vg/ik

debug1: host

'git.coding.net'is

known and matches the rsa host key.

debug1: found key

in /home/chen/.ssh/known_hosts:1

debug1: rekey after

4294967296

blocks

debug1: ssh2_msg_newkeys sent

debug1: expecting ssh2_msg_newkeys

debug1: rekey after

4294967296

blocks

debug1: ssh2_msg_newkeys received

debug1: ssh2_msg_service_accept received

debug1: authentications that can

continue

: publickey

debug1: next authentication method: publickey

debug1: offering rsa

public key: /home/chen/.ssh/id_rsa

debug1: server accepts key: pkalg ssh-rsa blen 279

sign_and_send_pubkey: signing failed: agent refused operation

debug1: trying

private key: /home/chen/.ssh/id_dsa

debug1: trying

private key: /home/chen/.ssh/id_ecdsa

debug1: trying

private key: /home/chen/.ssh/id_ed25519

debug1: no more authentication methods to

try.

permission denied (publickey).

解決辦法通過 ssh-add

eval "

$(ssh-agent -s)

"

我們會看到:

agent pid ***xx

繼續執行

ssh-add

顯示如下即成功:

identity added: /home/***/.ssh/id_rsa (/home/***/.ssh/id_rsa)

遇到問題後。。。

今天被徹底的打擊了,很想從辦公樓直接跳下去。二周了,二周的時間都花在了載入乙個新的controller driver,在專案裡,這個是最底層的usb驅動,所以它沒有工作,等於晶元就是一堆廢鐵。在上一周還不是很著急,但是這周徹底急了,team leader已經忍受不了整組人對這那個不能工作的 束手無策...

hive on tez遇到問題

一 環境hive0.13,tez0.5.0 二 執行異常如下 return code 101 from org.apache.hadoop.hive.ql.exec.tez.teztask.org.apache.tez.mapreduce.hadoop.mrhelpers.getbasemrconf...

linux遇到問題

rabbitmq 服務啟動問題 bf localhost sbin sudo service rabbitmq server start redirecting to bin systemctl start rabbitmq server.service failed to start rabbit...