SSH Without Password
Untuk mempercepat proses SSH kadang kita membutuhkan ssh tanpa memasukan kembali
username
dan password
Berikut langkah yang harus dijalankan:
- Buat
public.key
danprivate.key
bash $ su – user $ ssh-keygen -t rsa -P ” -f ~/.ssh/id_rsa
-
copy
public.key
ke local server$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys $ chmod 0600 ~/.ssh/authorized_keys
-
copy publik.key ke remote server
$ ssh-copy-id user@remote-host
atau
$ ssh-copy-id -i `./.ssh/other_key.pub user@remote-host