Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: cc_skavenger on February 05, 2005, 08:51:36 PM

Title: SSH authorized keys
Post by: cc_skavenger on February 05, 2005, 08:51:36 PM
Ok,
I am following the instructions listed here:

http://forums.contribs.org/index.php?topic=23215.msg93167#msg93167

I have about 5 servers that I am trying to get backed up overnight on a 6th server using cron.  I can get two servers to login with ssh authorized dsa keys, but can't get anymore to work.  The authorized key files that work are authorized_keys and authorized_keys2.  It does not seem to work if I use anything else.

Anyone else come across this?
TIA
Title: SSH authorized keys
Post by: Knuddi on February 05, 2005, 10:22:41 PM
Marco,

I use rsync to do both local and remote backup of multiple servers every day.

I usually create a public key with the server name its created to keep the from each other.

The I create a ssh config file in /root/.ssh/config indicating which key to use. Hence when connecting to diskserver01 use the archive01_dsa key etc.

  Host diskserver01
    IdentityFile ~/.ssh/archive01_dsa
  Host server02
    IdentityFile ~/.ssh/archive01_dsa


I only use the authorized_keys file and cat all the keys into that.

Rgds,
Jesper