Setting Rsync menggunakan SSH tanpa password di UNIX/Linux


1. Test rsync melalui ssh (dengan password) 

rsync -avz -e ssh /home/ramesh/ ramesh@192.168.200.10:/backup/ramesh/

2. Generate ssh-keygen keys.

$ ssh-keygen
Enter passphrase (empty for no passphrase):
Enter same passphrase again:

3. Copy ssh publik key ke remote host.

ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.200.10

4. Coba kembali rsync tanpa melalui password.

rsync -avz -e ssh /home/ardian/ ardian@192.168.200.10:/backup/ardian/

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s