Git SSH輸入錯誤的RSA Key(win7)

過程如下,也沒有在GitHub加入key,結果就一直無法通過認證 E:\> git remote add test01 git@github.com:XXXXX/test01.git E:\> git push -u test01 master The authenticity of host 'github.com' can't be established. RSA key fingerprint is 27:ac:a5:28:2d:63:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com' (RSA) to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository. linux的ssh key都放在~/.ssh內,而win7也一樣在家目錄內: C:\Users\\.ssh 在known_hosts文件中,找到並把git.com的key刪除後,就可以了。

利用Plink替代Putty來建立Script