This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about "rexec"


I think I should give up on trying to type today.  If my batting average
holds true there are at least two more typos I haven't spotted yet.

                                 Bill


----- Original Message ----- 
From: "Bill C. Riemers" <cygwin@docbill.net>
To: <cygwin@cygwin.com>
Sent: Thursday, May 22, 2003 6:59 PM
Subject: Re: Question about "rexec"


> I forgot the for authorized_keys...
>
> There are three others you can try:
>
>   ssh-keygen -t dsa
>   ssh $hostname tee -a .ssh/authorized_keys2 < ~/.ssh/id_rsa.pub
2>>/dev/null

^^^^^^^^

id_dsa.pub
>
> or:
>
>   ssh-keygen -t rsa1
>   ssh $hostname tee -a .ssh/authorized_keys < ~/.ssh/identity.pub
2>>/dev/null
>
> or:
>
>   ssh-keygen -t rsa
>   ssh $hostname tee -a .ssh/authorized_keys < ~/.ssh/id_rsa.pub
2>>/dev/null
>
>
> You might also want to check the ownership of your home directory and .ssh
> directory, as that is the only thing I can think of that would cause the
> touch error in your previous message.  If ownership or permissions are
> wrong, then sshd defaults to require a password rather than trusting that
> nobody else has changed the key files.
>
>                 Bill
>
> ----- Original Message ----- 
> From: "Andrew DeFaria" <ADeFaria@Salira.com>
> To: <cygwin@cygwin.com>
> Sent: Thursday, May 22, 2003 6:33 PM
> Subject: Re: Question about "rexec"
>
>
> > Please don't email me directly, keep it on the list...
> >
> > Bill C. Riemers wrote:
> >
> > >Opps I made a typo in those instructions...
> > >
> > >$ ssh-keygen -t rsa
> > >
> > $ ssh-keygen -t rsa
> > Generating public/private rsa key pair.
> > Enter file in which to save the key (/us/adefaria/.ssh/id_rsa):
> >
> > Hmmm... Guess I'll just default it...
> >
> > Enter passphrase (empty for no passphrase):
> > Enter same passphrase again:
> > open \033[6~ failed: No such file or directory.
> > Saving the key failed: .
> >
> > Well that didn't work!
> >
> > Hmmm....
> >
> > $ touch ~/.ssh/id_rsa
> > $ ssh-keygen -t rsa
> > Generating public/private rsa key pair.
> > Enter file in which to save the key (/us/adefaria/.ssh/id_rsa):
> > /us/adefaria/.ssh/id_rsa already exists.
> > Overwrite (y/n)? y
> > Enter passphrase (empty for no passphrase):
> > Enter same passphrase again:
> > Your identification has been saved in /us/adefaria/.ssh/id_rsa.
> > Your public key has been saved in /us/adefaria/.ssh/id_rsa.pub.
> >
> > That appeared to work. Strange...
> >
> > >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 2>>/dev/null
> > >
> > Testing this with an ssh $(hostname) id so I don't think I need to
> > mkdir. Did this command anyway...
> >
> > >$ ssh remotehost.com tee -a .ssh/authorizedkeys < ~/.ssh/id_rsa.pub
> > >2>>/dev/null
> > >
> > OK...
> >
> > >$ chmod go-rwX ~/. ~/.ssh
> > >
> > OK...
> >
> > >$ ssh remotehost.com chmod go-rwX . .ssh
> > >
> > OK...
> >
> > Now for the test:
> >
> > ssh $(hostname) id
> > adefaria@adefaria's password:
> >
> > Darn! Still need to enter my password!
> >
> > Any other ideas?
> >
> > >
> > >----- Original Message ----- 
> > >From: "Bill C. Riemers" <cygwin@docbill.net>
> > >To: <cygwin@cygwin.com>; "Andrew DeFaria" <ADeFaria@Salira.com>
> > >Sent: Thursday, May 22, 2003 5:13 PM
> > >Subject: 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/
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > 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/
>



--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]