2017-01-11 33 views
1

我試圖ssh到谷歌計算引擎使用gcloud,這用於正常工作。但由於某種原因,我現在一直在撞牆。它可以在控制檯上正常工作。該實例是框標準的默認實例。sshing使用gcloud導致拒絕代理

我不斷收到

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 

我曾嘗試用新的項目,但相同的結果。重新安裝谷歌雲sdk,同樣的結果。我必須錯過一些設置值,但我不知道我缺少什麼。我有SSH密鑰(由gcloud創建標準的,叫google_compute_engine(的.pub)在我的.ssh目錄。

任何建議,將不勝感激。

乾杯,邁克

+0

您可以在您嘗試SSH的虛擬機上添加更多詳細信息嗎?它是如何創建的?從什麼形象? –

+0

它是一個標準的debian實例(在問題中更新)。我實際上正在嘗試這個,因爲我在使用動態創建的實例時遇到了麻煩,因爲它使用了[compute-video-demo-ansible]。 – Mike

回答

1

嘗試的東西加載之後,我發現

sudo apt-get autoremove gnome-keyring 
ssh-add -D 
  • 重啓解決了這個。
相關問題