我们在GItHub上配置了当前PC的ssh key(密钥),使用ssh协议clone代码

git clone git@github.com:用户名/仓库名.git

这时候命令行会提示:

Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hosts.

那条警告的大概意思就是:警告:为IP地址13.250.177.223的主机(RSA连接的)持久添加到hosts文件中,那就来添加吧:

Linux环境下:
vim /etc/hosts
添加一行:13.250.177.223'  github.com

Windows系统:
C:\Windows\System32\drivers\etc\hosts
添加一行:13.250.177.223'  github.com

如未注明,均为原创,转载请注明来自Peak Xin's Blog

No Comments »