On Friday 14 September 2007 10:22, Peter Humphrey wrote: > Here's today's problem. > > I have a firewall-cum-gateway box between my tiny LAN and the Internet. The > gateway runs constantly, while the internal boxes run when needed (they're > my laptop and workstation). I want to use some space on the gateway to > store backups of the other boxes, and I'd like the backup to run unattended > at a time when the others are likely to be running. This seems not to be > possible without security risks. > > I've looked through all the Gentoo app-backup packages and found very few > that are suitable for use out of the box. Ssh figures in them all, which is > a good thing I suppose - except that I can't find a way to have ssh or scp > run unattended.
WIth ssh you can use a public/private keypair to do the authentications. The sequence is something like 1. Create a keypair on the CLIENT side of the connection 2. Copy the PUBLIC part of the keypair from the client to the server and append to the file ~/.ssh/authorised_keys That's it... Note that directory permissions and ownerships are very much required to be correct. And also that if you're doing this as root @ the server (Root at the client is fine, in fact usually required :), then (A) you shouldn't be (B) you might need to enable root login on sshd (In sshd_config on the server side). Hamish. -- [EMAIL PROTECTED] mailing list
