 |
Creating Password-Less SSH Keys (scp, sftp, rsync supported) |
 |
 |
Locate IP Address |
Run ifconfig eth0 and contact support with your main server IP address. Our backup servers are behind a firewall and any ip connection to SSH must be known.
|
 |
 |
Step 1: Create SSH Key |
Run the command ssh-keygen -b 1024 -t dsa and hit enter at any prompt
ssh-keygen -b 1024 -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
9e:48:41:fc:bc:cd:4a:17:1c:9b:18:91:95:41:8f:df root@blt.trouble-free.net
Once done the key is stored in /root/.ssh/id_dsa.pub which is now a password-less SSH 2 key.
|
 |
 |
Step 2: Move Key to backup account |
Create the folder .ssh and chmod it to permissions 700. FTP is suggested to do this.
Move into the folder .ssh placed id_dsa.pub in this folder with the name authorized_keys2
Chmod authorized_keys2 to permissions 600.
|
 |
 |
Step 3: Test the connection |
Using scp or rsync will now copy the file with out asking for a password.
Try scp filename username@BackupServer:/somefoldername
|
 |