For openssh, to log on w/o a password, on the computer from which you
want to log on, run "ssh-keygen -t rsa" to generate a ssh2 keypair
(without the "-t rsa" it would make an ssh1 keypair). For ease of use,
give an empty passphrase. Accept the default location for the keypair, in
~.ssh.
The ssh2 keypair is id_rsa, id_rsa.pub; the ssh1 is identity,
identity.pub. I assume ssh2 is the default when you use ssh. For the
ssh2 keypair, copy id_rsa.pub from the computer from which you want to log
w/o a password to ~./ssh/authorized_keys2 on the computer to which you
want to log on w/o a password.
On Tue, 5 Nov 2002, Gary Chan wrote:
> Hi,
>
> I have used " rsync -e ssh ipass:/home/gary/abc.txt /tmp/def.txt", but
> it needs to enter password. If I would like to run it as a cronjob, how
> can I prevent to prompt to enter password
>
>
> -----Original Message-----
> From: Steven J. Yellin [mailto:yellin@;SLAC.Stanford.EDU]
> Sent: Tuesday, November 05, 2002 2:43 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: rsync
>
>
> You can (and should, I think) use rsync with openssh in order to make
> it secure. The failure before would happen if (wisely, I think) your
> computers are set up to prevent use of the insecure rsh. Assuming you
> have openssh installed, try modifying your command to
> rsync -e ssh ipass:/home/gary/abc.txt /tmp/def.txt
>
> On Mon, 4 Nov 2002, Martinez, Michael - CSREES/ISTM wrote:
>
> > I would not use rsync or any of the rhosts stuff because it is not secure. I
> > would use openssh.
> >
> >
> > Michael Martinez
> > System Administrator
> > Information Systems and Technology Management
> > CSREES - United States Department of Agriculture
> > (202) 720-6223
> >
> > -----Original Message-----
> > From: Gary Chan [mailto:gary.chan@;dataworld.com.hk]
> > Sent: Sunday, November 03, 2002 10:03 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: rsync
> >
> >
>
> >
> > -----Original Message-----
> > From: Gary Chan
> > Sent: Monday, November 04, 2002 10:52 AM
> > To: [EMAIL PROTECTED]
> > Subject: rsync
> >
> >
> > Dear all,
> >
> > I am now testing to use rsync between two linux server. Both are 7.1 with
> > kernel 2.4.2-2. For example, I would like rsync the file from server A to
> > server B.
> >
> > In server A:
> > [gary@serverA gary]$ rsync ipass:/home/gary/abc.txt /tmp/def.txt
> > Permission denied.
> > unexpected EOF in read_timeout
> >
> > In server B, I tried to see the /var/log/messages and below is the log
> > message:
> > Nov 4 10:46:40 serverB pam_rhosts_auth[29940]: denied to gary@serverA
> > <mailto:gary@;serverA> as gary: .rh
> > osts writable by group
> > Nov 4 10:46:40 serverB in.rshd[29940]: rsh denied to gary@serverA
> > <mailto:gary@;serverA> as gary: Permiss
> > ion denied.
> >
> > Gary
> >
> >
> >
> >
> >
>
>
--
Steven Yellin
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list