Permanently added the RSA host key for IP address to the list of known hosts

将Hexo项目托管到Coding.net后,使用hexo g -d提交代码后报下面的Warning

Permanently added the RSA host key for IP address ‘123.59.85.105’ to the list of known hosts.

123.59.85.105为域名coding.net的ip地址

猜测可能的原因是hexo命令deploy时不会检查~/.ssh/known_hosts文件

编辑config文件 ~/.ssh/config:

1
2
3
4
Host coding.net
HostName 123.59.85.105
IdentityFile {path_to_private_key}
User {user_name}

此时提交就没有warning了

文章目录
// Add comment count