This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Question about "rexec"
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): <press return>
Enter same passphrase again: <press return>
...
$ ssh remotehost.com mkdir .ssh
$ ssh remotehost.com tee -a authorizedkeys < ~/.ssh/id_rsa.pub
$ chmod go-rwX ~/. ~/.ssh
$ ssh remotehost.com chmod go-rwX . .ssh
Walla, a password is nolonger required to login to remotehost.com .
Bill
----- Original Message -----
From: "Andrew DeFaria" <ADeFaria@Salira.com>
To: <cygwin@cygwin.com>
Sent: Thursday, May 22, 2003 5:02 PM
Subject: Re: Question about "rexec"
> Igor Pechtchanski wrote:
>
> >On Wed, 21 May 2003, David HALE wrote:
> >
> >
> >
> >>Hi,
> >>
> >>I am writing a shell script that needs to execute commands on a remote
> >>system using "rexec". I want to do this without typing in a password
every
> >>time the "rexec" command executes. The way I see it the "rexec" command
in
> >>CYGWIN does not allow a password to be passed. I have tried to use a
> >>".netrc" file (to supply the password) with the format:
> >> machine remote_machine_name login remote_username password string
> >>I have not been able to get this to work. I cannot find a man page or
other
> >>CYGWIN documentation for "rexec" or ".netrc".
> >>
> >>Is it possible to do this with CYGWIN?
> >>
> >>David Hale
> >>
> >>
> >
> >Umm, why not use "ssh"?
> > Igor
> >
> >
> When I use ssh I get prompted for a password.
>
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/