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
User Comments
Add a Comment
Sharing is good. If you have a comment about this entry, please feel free to share. The comments might be reviewed by our staff, and may require approval before being posted. Questions posted will not be answered. Please submit a Ticket for support requests.
Image Verification Required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Full Name:
E-mail Address: (optional)
Comment:
Back
Login
Username:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Troubleshooter
Article Options
Add Comment
Print Article
PDF Version
E-mail Article
Add to Favorites
Home
|
Knowledgebase
|
Troubleshooter
|
News
|
Downloads
Language:
English (U.S.)
Help Desk Software
Help Desk Software by Kayako eSupport v3.70.02