Greg Thomas wrote:
I've got a little backup script piping dump to ssh to my backup server
rice, and I've got my keys setup:

=============================================
[EMAIL PROTECTED]:/home/ethant# uname -a
OpenBSD grits 3.9 GENERIC#107 i386
[EMAIL PROTECTED]:/home/ethant# ssh rice
Last login: Fri Aug 25 00:14:42 2006 from grits
OpenBSD 4.0-beta (GENERIC) #1083: Mon Aug 21 21:24:02 MDT 2006

This means you can login with RSA key auth as root.


[EMAIL PROTECTED]:/home/ethant# cat test.sh
#!/bin/sh
/sbin/dump -0auf - /dev/rwd0a | gzip | \
  ssh [EMAIL PROTECTED] "cat > /grits/$(date "+%Y%m%d")_root.dump.gz"

[EMAIL PROTECTED]:/home/ethant# sudo test.sh
 DUMP: Date of this level 0 dump: Fri Aug 25 00:23:42 2006
 DUMP: Date of last level 0 dump: the epoch
 DUMP: Dumping /dev/rwd0a (/) to standard output
 DUMP: mapping (Pass I) [regular files]
 DUMP: mapping (Pass II) [directories]
 DUMP: estimated 39523 tape blocks.
 DUMP: Volume 1 started at: Fri Aug 25 00:23:42 2006
 DUMP: dumping (Pass III) [directories]
 DUMP: dumping (Pass IV) [regular files]
[EMAIL PROTECTED]'s password:

It seems you only have pubkey for the [EMAIL PROTECTED] and not for [EMAIL PROTECTED] :) Please verify your pubkey in your .ssh/authorized_keys for user: ethant.

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)

Reply via email to