passwordless SSH Rsync [Was : Disk Layout/Partitioning Practices]

Ron Herardian rherardi at gssnet.com
Thu Jan 29 11:19:03 UTC 2004


Not sure if this helps but if you want to ssh with out a password (or set this up for rsync) all you have to do is make sure that ~/.ssh/dsa.pub (from the user on the originating host) gets copied to ~/.ssh/authorized_keys2 for the same user on the destination host. Of course you can make this bi-directional whether or not the users ssh keys (identity/identity.pub, id_ras/id_rsa.pub, id_dsa/id_dsa.pub, authorized_keys/authorized_keys2) are the same on both hosts--just keep track of which files go with which originatin/destination hosts.

Ron



Ow Mun Heng wrote:
> 
> > -----Original Message-----
> > From: Rui Miguel Seabra [mailto:rms at 1407.org]
> > Sent: Thursday, January 29, 2004 6:14 PM
> >
> > On Thu, 2004-01-29 at 03:40, Ow Mun Heng wrote:
> > > Now.. Can anyone tell me how to set up rsync to use ssh??
> >
> > > rsync -ave ssh seems to be the idea but i keep geting
> > >ssh_exchange_identification: Connection closed by remote host
> > >whenever i try. (after setting up passwordless logins using SSH, from
> > > server1 to server2 I can get from server2 to server1 anymore!)
> >
> > export RSYNC_RSH=ssh
> 
> Hmm.. SNAFU here in my area. Didn't realise when I placed server2 into
> server1's hosts.deny list. After I removed it, I can get to Server1
> but I'm still being asked a password.
> 
> (Note: Server2 has server1's pub key but
>          server1 do not have server2's public key.
>          (I did not generate one)
>          Instead I was trying out ForwardAgent yes and
>          eval `ssh-agent`
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

-- 

Global System Services Corporation (GSS)
650 Castro Street, Suite 120, Number 268, Mountain View, CA 94041, USA
+1 (650) 965-8669 phone, +1 (650) 965-8679 fax, +1 (650) 283-5241 mobile
rherardi at gssnet.com, http://www.gssnet.com

"The best way to predict your future is to create it." - Stephen Covey





More information about the fedora-list mailing list