解決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 把這兩行註釋掉
相關文章
相關標籤/搜索