SSH Without Password
Untuk mempercepat proses SSH kadang kita membutuhkan ssh tanpa memasukan kembali
username dan password
Berikut langkah yang harus dijalankan:
- Buat
public.keydanprivate.keybash $ su – user $ ssh-keygen -t rsa -P ” -f ~/.ssh/id_rsa
-
copy
public.keyke 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-hostatau$ ssh-copy-id -i `./.ssh/other_key.pub user@remote-host