I assigned a dedicated ssh key pair for github repos. And I have associated the key pair with github correctly in ~/.ssh/config.
But each time when I try to access github repos via ssh, both read(such pull or fetch) or write(such as push), I will get a strange error:
key_read: uudecode [some SSH key code]
ssh-rsa [SSH key code]
failed
I tried a lot to fix the problem, and finally I solved the problem by delete the file ~/.ssh/known_hosts I
assume the problem might be caused that there is some invalid association cached in the file. So maybe you can solve the problem by removing the related entries instead of delete the whole file.

本文介绍了一种在使用SSH密钥对访问GitHub仓库时遇到的奇怪错误,并分享了解决该问题的方法:通过删除~/.ssh/known_hosts文件来清除无效的缓存记录。
777

被折叠的 条评论
为什么被折叠?



