This is for password less login.
First create a
id_rsa.pub key using this method
[max@localhost .ssh]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/max/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/max/.ssh/id_rsa.
Your public key has been saved in /home/max/.ssh/id_rsa.pub.
The key fingerprint is:
The key's randomart image is:
+--[ RSA 2048]----+
| . . |
| . = . . . |
| . * . + |
| . S + |
| . o * . |
| + * . . |
| . + + . |
| Eoo ... |
id_rsa.pub key to remote system
This key will present under
.ssh/ directory under your home directory
Using this command you can copy the
id.rsa.pub key to remote system (firstname.lastname@example.org.*.*)
[max@localhost .ssh]$ ssh-copy-id -i id_rsa.pub email@example.com.*.*
The authenticity of host '10.10.*.* (10.10.*.*)' can't be established.
RSA key fingerprint is 2b:bf:e1:e9:c6:76:b0:2d:a1:45:0f:2a:53:05:10:15.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.10.*.*' (RSA) to the list of known hosts.
Now try logging into the machine, with "ssh 'firstname.lastname@example.org.*.*'", and check in:
to make sure we haven't added extra keys that you weren't expecting.
Now type rsync command to copy files (To automatic copy write a crontab, and write this command)
This is the syntax of
rsync [OPTION...] SRC... [DEST]
[max@localhost .ssh]$ rsync -avz email@example.com.*.*:/home/min/test /home/max/Desktop
receiving incremental file list
sent 30 bytes received 89 bytes 79.33 bytes/sec
total size is 0 speedup is 0.00