I've found the following ssh key installer script works extremely well and automates the key installing procedure.

http://www.stearns.org/ssh-keyinstall/

You'll find rpms in there aswell as this script :

http://www.stearns.org/ssh-keyinstall/ssh-keyinstall

which I just throw in /usr/local/bin and chmod 777 it.

Example:

ssh-keyinstall -s remoteserver -u root

it then asks for you password about 4 times and thats that.

my 2c..

Tino Schwarze wrote:
On Mon, Dec 18, 2006 at 09:48:13PM +0200, Ashley Shaw wrote:

  
The first link on the BackupPC site advises that you test as the BackupPC
user on the server to verify if it works, I did as follows:
---------------------------------------------------------------------------
[EMAIL PROTECTED]:/etc/backuppc# ssh -l root server1 whoami
root
    

So ssh access is working fine for root.

  
[EMAIL PROTECTED]:/etc/backuppc# su - backuppc
[EMAIL PROTECTED]:~$ ssh -l root server1 whoami
Enter passphrase for key '/var/lib/backuppc/.ssh/id_rsa':
[EMAIL PROTECTED]'s password:
Permission denied, please try again.
[EMAIL PROTECTED]'s password:
    

But the backuppc user cannot ssh yet. You need to add the
/var/lib/backuppc/.ssh/id_rsa.pub to the authorized_keys of root of the
client PC.

The following command has to work without asking for any password:
  
[EMAIL PROTECTED]:~$ ssh -l root server1 whoami
    

You might need to remove the passphrase from the key. (The secure
solution would be to use ssh-agent and add the key when backuppc is
started. Then you cannot automate this, of course.)

  
I found an article on an article somewhere online that I should add the
BackupPC user to the sudoers file, see the /etc/sudoers file below for the
syntax I used:
    

IIRC, this is only for local backup via rsync.

HTH,

Tino.

  

-- 

Garith Dugmore
Systems Administrator
South African Astronomical Observatory

Phone:		021 460 9343
Website:	http://www.saao.ac.za
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to