Permission denied (publickey,gssapi-keyex,gssapi-with-mic)問題——使用openshift遠程鏈接的時候出現的問題解決辦法

進入.ssh目錄(ubuntu是在用戶主目錄下),修改id_rsa文件的屬性chmod +xr id_rsaubuntu

使用 ls -l查看文件屬性,結果以下:ssh

db@db:~/.ssh$ ls -l
總用量 12
-rwxr-xr-x 1 root root 1679 11月 3 20:11 id_rsa
-rwxr-xr-x 1 root root 394 11月 3 20:11 id_rsa.pub
-rwxr-xr-x 1 root root 833 12月 6 23:13 known_hostsrsa

 

問題解決!hosts

相關文章
相關標籤/搜索