| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_BR,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RCVD_IN_JMF_BR |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4F878BC8.8070001@acm.org> |
| Date: | Thu, 12 Apr 2012 19:13:28 -0700 |
| From: | David Rothenberger <daveroth AT acm DOT org> |
| User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: trouble logging in over ssh with a key |
| References: | <CADVrmKSLpSUcRfS-0G===dmUhoM+SOvCmjdH70qQq7_tyDgbqA AT mail DOT gmail DOT com> |
| In-Reply-To: | <CADVrmKSLpSUcRfS-0G===dmUhoM+SOvCmjdH70qQq7_tyDgbqA@mail.gmail.com> |
| X-IsSubscribed: | yes |
| Reply-To: | cygwin AT cygwin DOT com |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 4/12/2012 12:50 PM, fREW Schmidt wrote:
> I'm trying to set up my server to allow key-based authentication and
> am not having any luck. I initially created the key on the windows
> box with ssh-user-config. Then I copied the private key (I know,
> that's not how you are supposed to do it, but I was worried that on
> cygwin it needed to do some extra special steps) to my desktop. Now I
> have the following in my .ssh/config:
>
> host fl
> user Administrator
> hostname FrewLynx
> port 22
> identityfile ~/.ssh/id_rsa2
>
> so when I do ssh fl it should expand to Administrator AT FrewLynx with
> the correct key.
That configuration stanza expects to find your private key in
~/.ssh/id_rsa2
but you said you copied it to your desktop. Did you *move* it to your
Windows desktop, so it is no longer in ~/.ssh/id_rsa2?
> Here is the log from ssh -vvv fl
>
> OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
[snip]
> debug2: key: /home/frew/.ssh/keys/frewlynx.rsa ((nil))
It's trying to use ~/.ssh/keys/frewlynx.rsa as the key. Is there more in
your ~/.ssh/config file that specifies this? Or maybe in
/etc/ssh_config? Maybe a "Host *" stanza somewhere before your "Host f1"
stanza?
> Can anyone help me out and tell me what I need to change?
You can get the ~/.ssh/config file out of the way to see if you can get
this to work:
$ SSH_AUTH_SOCK= ssh -F /dev/null -i ~/.ssh/id_rsa2 \
Administrator AT FrewLynx
If that works, the problem is in your ~/.ssh/config (or possible
/etc/ssh_config). If that doesn't work, check the -vvv output again to
see which key it's trying to use.
--
David Rothenberger ---- daveroth AT acm DOT org
"Wish not to seem, but to be, the best."
-- Aeschylus
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |