解决linux中ssh登陆Warning:Permanently added (RSA) to the list of known hosts

缘由: 在执行scp id_rsa.pub root@hostname:/root/.ssh这一步时,没在本机的/root/.ssh下生成known_hosts文件。 解决方案: vi /etc/ssh/ssh_config 最后有两行是          StrictHostKeyChecking no           UserKnownHostsFile /dev/null 把这两行注释掉
相关文章
相关标签/搜索