Tidak Bisa Login Dengan SSH Key

sehabis install ulang server saya Tidak Bisa Login Dengan SSH Key dan mengalami error tidak bisa add key ssh dan mendapat error SSH ERROR WARNING All keys were skipped. untuk login tanpa password ke server tujuan

pesan error yang saya temui seperti dibawah ini

[arielfx@fedora ~]$ ssh-copy-id -i -p port 'root@serverhost'
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

untuk memperbaiki error tersebut, silahkan anda copy id_dsa.pub ke remote server dengan cara

cd ~/.ssh
scp -P port id_rsa.pub  root@serverhost:.ssh/authorized_keys

jika masih belum bisa, pastikan permission file dan folder .ssh sudah benar pada server tujuan anda

$ chmod 700 ~/.ssh
$ chmod 600 ~/.ssh/authorized_keys

Selamat mencoba 🙂

Baca juga:  Instalasi LAMP Dan phpMyAdmin di CentOS 6

Write a Comment

Your email address will not be published.

three − three =

%d bloggers like this: