使用 gcloud sshing 导致代理拒绝
sshing using gcloud leads to agent refusal
我正在尝试使用 gcloud ssh 连接到 google 计算引擎,这曾经工作正常。但出于某种原因,我现在已经碰壁了一段时间。它在控制台上工作正常。该实例是盒子标准的默认实例。
我不断收到
google compute ssh test
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
更详细
google compute ssh test -vvv
...
bug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/mike/.ssh/google_compute_engine
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug2: input_userauth_pk_ok: fpSHA256:bW6Bpi2N67+MIGbRkfLRcdl5ghxQWOAtiRiYazy1JXU
debug3: sign_and_send_pubkey: RSA SHA256:bW6Bpi2N67+MIGbRkfLRcdl5ghxQWOAtiRiYazy1JXU
sign_and_send_pubkey: signing failed: agent refused operation
我尝试了一个新项目,但结果相同。重新安装 google cloud sdk,结果相同。我一定是遗漏了一些设置值,但我不知道我遗漏了什么。我有 ssh 密钥(由 gcloud 创建的标准密钥,在我的 .ssh 目录中称为 google_compute_engine(.pub)。
如有任何建议,我们将不胜感激。
干杯,迈克
在尝试了很多东西之后,我发现
sudo apt-get autoremove gnome-keyring
ssh-add -D
- 重新启动解决了这个问题。
我正在尝试使用 gcloud ssh 连接到 google 计算引擎,这曾经工作正常。但出于某种原因,我现在已经碰壁了一段时间。它在控制台上工作正常。该实例是盒子标准的默认实例。
我不断收到
google compute ssh test
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
更详细
google compute ssh test -vvv
...
bug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/mike/.ssh/google_compute_engine
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug2: input_userauth_pk_ok: fpSHA256:bW6Bpi2N67+MIGbRkfLRcdl5ghxQWOAtiRiYazy1JXU
debug3: sign_and_send_pubkey: RSA SHA256:bW6Bpi2N67+MIGbRkfLRcdl5ghxQWOAtiRiYazy1JXU
sign_and_send_pubkey: signing failed: agent refused operation
我尝试了一个新项目,但结果相同。重新安装 google cloud sdk,结果相同。我一定是遗漏了一些设置值,但我不知道我遗漏了什么。我有 ssh 密钥(由 gcloud 创建的标准密钥,在我的 .ssh 目录中称为 google_compute_engine(.pub)。
如有任何建议,我们将不胜感激。
干杯,迈克
在尝试了很多东西之后,我发现
sudo apt-get autoremove gnome-keyring
ssh-add -D
- 重新启动解决了这个问题。