passwordless SSH Rsync [Was : Disk Layout/PartitioningPractices]

Ow Mun Heng ow.mun.heng at wdc.com
Thu Jan 29 11:55:51 UTC 2004


> -----Original Message-----
> From: Rui Miguel Seabra [mailto:rms at 1407.org]
> 
> 
> On Thu, 2004-01-29 at 10:38, 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. 
> 
> I'm sorry, I didn't understand your question properly.
> 
> Create a pair of ssh keys (priv and pub), probably passphrase-less.
> Place the public key in server2's user's ~/.ssh/authorized_keys
> 

Okay.. Square1 

Having some issues running ssh to go from server1 to server2 and back to
server1 or server2 to server1

1. create keypair (server1)
2. copy public key to server2
3. able to ssh w/o password from server1->server2

Up to now, success in going from server1 to server2 but not the other around

I did not copy/create another keypair nor copy my private key to server2
I'm trying to use ssh-agent instead

on server1
1. eval `ssh-agent`
2. ssh-add (proceeds to add the keys under /home/username/.ssh/)

On Server2 
Edited /etc/ssh_config to put in ForwardAgent yes and restarted sshd
(also tried ssh server1 -A)

Log in to server2 traditionally (putty->server2)
1. ssh server1 -v
username at server2:~# ssh server1 -V

You are entering restricted Airspace *yada..yada*
username at server1$  <I Still Need to Type in A Password>

What gives?? I thought the ssh-agent will forward the requests along
to each other??
That's what the book Linux Server hacks Tells me..

I do not want to have My Private key in all the servers. Only in Server1 and
get the other servers to request that from server1 using ssh-agent.

Thanks





More information about the fedora-list mailing list