Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-17 Thread RobertH
stewart, try this website using anything other than msie browser. http://www.jms1.net/code/rsync-backup.shtml this code has been most excellent for meeting many basic needs. :-) dont forget to give jms1 a shout of thanks - rh ___ CentOS mailing l

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Kai Schaetzl
Stewart Williams wrote on Tue, 16 Jun 2009 21:59:27 +0100: > command="rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup > stew...@name.of.remote.server:/backup" ssh-dss ... key ... As Nate says, the comand on the other end looks different. Here's a good explanation and also a script to check on th

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Stewart Williams
Filipe Brandenburger wrote: > Hi, > > On Tue, Jun 16, 2009 at 17:10, Filipe Brandenburger > wrote: >> On Tue, Jun 16, 2009 at 16:59, Stewart Williams >> wrote: >>> command="rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup >>> stew...@name.of.remote.server:/backup" ssh-dss ... key ... >> You actu

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Stewart Williams
nate wrote: > Stewart Williams wrote: >> Hi, >> >> I'm trying to backup from one machine to the other (automatically via >> cron) using rsync and ssh password-less public key authentication. >> >> I having been trying to set this up following an article in a Linux >> magazine[1] by only allowing th

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Stewart Williams
Tom Brown wrote: >> command="rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup >> stew...@name.of.remote.server:/backup" ssh-dss ... key ... > > which user is doing this as maybe the env of that user in cron is not > the same as when logged in using a shell ? It's the same user, I haven't added t

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Filipe Brandenburger
Hi, On Tue, Jun 16, 2009 at 17:12, Spiro Harvey wrote: > well, I've never seen anything other than keys in an authorized_keys > file.. See the "AUTHORIZED_KEYS FILE FORMAT" section in "man sshd". > (btw - use authorized_keys2 for ssh v2), That file name is deprecated, the file should be named a

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Filipe Brandenburger
Hi, On Tue, Jun 16, 2009 at 17:10, Filipe Brandenburger wrote: > On Tue, Jun 16, 2009 at 16:59, Stewart Williams wrote: >> command="rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup >> stew...@name.of.remote.server:/backup" ssh-dss ... key ... > > You actually have to include the command that rsync

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Spiro Harvey
On Tue, 16 Jun 2009 21:59:27 +0100 Stewart Williams wrote: > command="rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup > stew...@name.of.remote.server:/backup" ssh-dss ... key ... well, I've never seen anything other than keys in an authorized_keys file.. (btw - use authorized_keys2 for ssh v2),

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Filipe Brandenburger
Hi, On Tue, Jun 16, 2009 at 16:59, Stewart Williams wrote: > command="rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup > stew...@name.of.remote.server:/backup" ssh-dss ... key ... You actually have to include the command that rsync will call on the server side, not the command you use to call rsy

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread nate
Stewart Williams wrote: > Hi, > > I'm trying to backup from one machine to the other (automatically via > cron) using rsync and ssh password-less public key authentication. > > I having been trying to set this up following an article in a Linux > magazine[1] by only allowing the specific rsync comm

Re: [CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Tom Brown
> command="rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup > stew...@name.of.remote.server:/backup" ssh-dss ... key ... which user is doing this as maybe the env of that user in cron is not the same as when logged in using a shell ? ___ CentOS mailin

[CentOS] Rsync, SSH and authorized_keys problem

2009-06-16 Thread Stewart Williams
Hi, I'm trying to backup from one machine to the other (automatically via cron) using rsync and ssh password-less public key authentication. I having been trying to set this up following an article in a Linux magazine[1] by only allowing the specific rsync command to run on the remote box. I am