問題
打算從遠程倉庫克隆項目到本地時,報錯:
$ git clone [email protected]:EverChan6/meetingDemo.git
Cloning into 'meetingDemo'...
packet_write_wait: Connection to 52.74.223.119 port 22: Broken pipe // <==就是它!!!
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
解決
從網上看了挺多解決辦法,終於找到一個說辭是說
由於多日未 進行ssh 登錄操作,本地 publickey 失效造成的。
所以解決方法就是Adding your SSH key to the ssh-agent
$ ssh-add ~/.ssh/id_rsa
Identity added: /c/Users/HP/.ssh/id_rsa (/c/Users/HP/.ssh/id_rsa)