I am trying to use some rsa keys to run backup scripts via cron, ssh and rsync. I have a backup server in my apartment that connects to a remote host in another state and grabs all changed files. To automate this processes I used the following commands with success:
Code:
ssh-keygen -t dsa
scp .ssh/id_dsa.pub [email]user@myhost.com:~/
ssh [email]user@myhost.com
cat id_dsa.pub >> .ssh/authorized_keys2
Now, this worked for the first machine, but now I need this same machine, the one in my apartment, to connect to another server to run backups the same way. How do I set up another key pair, or do I just use the same one for the other server? I have generated a new set and named it differently (if I don't, I'll overight the existing one that works for the first server) but it didn't work. Help, please