public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: SSH key directory defaulting to non-Cygwin SSH client location
@ 2013-09-16 19:56 J J
  0 siblings, 0 replies; 3+ messages in thread
From: J J @ 2013-09-16 19:56 UTC (permalink / raw)
  To: cygwin

Thank you Christopher.  You were spot on.  i will install the cygwin version:

/home/jd2013 which ssh-keygen
/cygdrive/c/PROGRAM FILES/ATTACHMATE/REFLECTION/ssh-keygen

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SSH key directory defaulting to non-Cygwin SSH client location
  2013-09-16  2:01 J J
@ 2013-09-16  6:11 ` Christopher Faylor
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Faylor @ 2013-09-16  6:11 UTC (permalink / raw)
  To: cygwin

On Sun, Sep 15, 2013 at 02:37:39PM -0500, J J wrote:
>I recently had to reinstall cygwin on my Windows 7 laptop and am now
>having trouble getting passwordless ssh to work from my laptop to
>remote hosts. I have another ssh client, Reflections, installed, and
>Cygwin insists on using that directory for the ssh key. I would like
>to use a separate .ssh directory but can't figure out how to work
>around this behavior.
>
>Here's my home directory that the shell opens to. This is also in
>/etc/passwd of course:
>/home/jd2013 pwd
>/home/jd2013
>
>Here's what happens when I try to generate an RSA key file:
>/home/jd2013 ssh-keygen -t rsa
>Generating public/private rsa key pair.
>Enter name for key file: jd2013
>C:\Users\jd2013\Documents\Attachmate\Reflection\.ssh\jd2013 already exists.
>Overwrite (y/n)? n

There is no way that Cygwin ssh-keygen would display a MS-DOS path.
It's pretty obvious that you're running the "another ssh client"
version.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* SSH key directory defaulting to non-Cygwin SSH client location
@ 2013-09-16  2:01 J J
  2013-09-16  6:11 ` Christopher Faylor
  0 siblings, 1 reply; 3+ messages in thread
From: J J @ 2013-09-16  2:01 UTC (permalink / raw)
  To: cygwin

I recently had to reinstall cygwin on my Windows 7 laptop and am now
having trouble getting passwordless ssh to work from my laptop to
remote hosts. I have another ssh client, Reflections, installed, and
Cygwin insists on using that directory for the ssh key. I would like
to use a separate .ssh directory but can't figure out how to work
around this behavior.

Here's my home directory that the shell opens to. This is also in
/etc/passwd of course:
/home/jd2013 pwd
/home/jd2013

Here's what happens when I try to generate an RSA key file:
/home/jd2013 ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter name for key file: jd2013
C:\Users\jd2013\Documents\Attachmate\Reflection\.ssh\jd2013 already exists.
Overwrite (y/n)? n

I don't know for certain how this was working before I had to
reinstall Cygwin (McAfee had a false positive that bash.exe was a
virus last month), but I would like to avoid having to set my Cygwin
home to the Reflection directory. I tried creating a .ssh subdirectory
in $HOME, but that had no effect. For what it's worth, $HOME is owned
by "jd2013:Domain Users" and the Reflections directory is owned by
"Administrators:Domain Users".

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-16 19:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-16 19:56 SSH key directory defaulting to non-Cygwin SSH client location J J
  -- strict thread matches above, loose matches on Subject: below --
2013-09-16  2:01 J J
2013-09-16  6:11 ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).