07 Sep 2010 
Support Center » Knowledgebase » Setup SSH keys to back up multiple servers
 Setup SSH keys to back up multiple servers
Article

How-to setup SSH keys to back up multiple servers



For this guide, we will be using 2 servers as an example. One, which will be called, Homer (server 1) and another called Peter (server 2).

Step 1

Log in to the servers through SSH, telnet, or another shell access method.

Step 2

We will then create an RSA encryption key for use with the SSH transport on Homer, and Peter. To check if a key already exists, we execute the following command:

# cat ~/.ssh/id_rsa.pub

If the file already exists, we can skip to step 3. Otherwise, create a key with the ssh-keygen utility:

# ssh-keygen -t rsa -N '' (note: these are two single quotes)

Step 3

On Homer, we copy Homer's RSA encryption key over to Peter.

[root@homer]# scp ~/.ssh/id_rsa.pub yourusername@peter:.ssh/authorized_keys

Step 4

We then copy the authorized_keys file from Peter over to the back-up account.

[root@peter]# scp ~/.ssh/authorized_keys user@remotebackup.server.com:.ssh/


And we're all set to go! We can now remotely connect to other servers without having to manually enter a password.


Article Details
Article ID: 4
Created On: 06 Oct 2008 2:43 AM

 This answer was helpful  This answer was not helpful

 Back
 Login  
Username:
Password:
Remember Me:
 
 Search
 Article Options
Home | Knowledgebase | Troubleshooter | News | Downloads
Language:

Help Desk Software Help Desk Software by Kayako eSupport v3.70.02