1. 程式人生 > >Failed to add the host to the list of known hosts 問題解決

Failed to add the host to the list of known hosts 問題解決

遇到下面這種情況說明的known_hosts檔案的許可權有問題

Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts

只需要將.ssh/known_hosts 這個檔案的許可權該成644就行了

chmod 644 ~/./ssh/known_hosts