git倉庫下有兩個遠端,一個在XM一個在TPE,都在對應的gitlib、gitweb上添加了SSH rsa。
但是常常在pull/push的時候出錯
執行如下
eval `ssh-agent`
ssh-add ~/.ssh/taipei
add發現如下報錯
ERROR:
Could not open a connection to your authentication agent
在、/tem/下發現好多
ssh-cmvfFXcV6198 ssh-nUpIKLiU7441 ssh-rnbSqxEl6228
ssh-kKOMSnOa6172 ssh-QQwnddjW7548 ssh-VTltnMfG7444
試着刪除,不起作用
在shell下執行
ssh-agent bash --login -i
在ssh-add 問題解決。