Koozali.org: home of the SME Server

SSH authorized keys

cc_skavenger

SSH authorized keys
« 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

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
SSH authorized keys
« Reply #1 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