Host gitcode.net HostName gitcode.net User git IdentityFile ~/.ssh/git_code_rsa Host gitee.com HostName gitee.com User git IdentityFile ~/.ssh/gitee_rsa Host github.com HostName github.com User git IdentityFile ~/.ssh/github_rsa
测试
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
cmd输入 : ssh -T git@github.com
输出: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is SHA256:******************************. Please contact your system administrator. Add correct host key in C:\\Users\\****/.ssh/known_hosts to get rid of this message. Offending RSA key in C:\\Users\\****/.ssh/known_hosts:1 RSA host key for github.com has changed and you have requested strict checking. Host key verification failed.
使用 SSH 连接报 Bad owner or permissions on C:\Users\Administrator/.ssh/config 错误问题解决