鍍金池/ 問(wèn)答/Android  Linux  網(wǎng)絡(luò)安全/ github項(xiàng)目push失敗,提示Permission to .. denied

github項(xiàng)目push失敗,提示Permission to .. denied to deploy key

clipboard.png
網(wǎng)上的解決方法大概是去本地生成一個(gè)ssh_key,但是我本地已經(jīng)有了,也在github上設(shè)置了,而且輸入$ ssh -T git@github.com
出現(xiàn)這樣的情況

clipboard.png
這里的ZGXXX/zgxxx.github.io是我另外一個(gè)項(xiàng)目,搞不清楚這其中的關(guān)系,求大神指教

回答
編輯回答
涼薄

編輯~/.ssh/config文件,添加以下內(nèi)容:

Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
2017年10月15日 20:49