public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Cannot login with publickey on sshd
Date: Thu, 18 Dec 2008 21:17:13 +0000	[thread overview]
Message-ID: <200812182117.42962.michaelkintzios@gmail.com> (raw)
In-Reply-To: <494A4CAF.2010206@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]

On Thursday 18 December 2008, Eric Martin wrote:
> Mick wrote:

> > I have now also tried to generate a key pair on the server, move the
> > private key over to the client and then try to login - still no result! 
> > :-(
> >
> > It has to be some sort of incompatibility between the two versions of
> > OpenSSH. Don't know what else to assume with this problem.
>
> It definitely looks like the server doesn't like your private key.  Did
> you remember to update(read: add) the public key on the server? 

Oops!  I forgot about this thread - sorry.  I finally found out what was 
causing it:

I had an entry for a previous server on the same IP address in the 
~/.ssh/config file on the client and had disabled publickey to make the login 
faster.  On that occasion the server was a router and it did not offer 
publickey authentication.  After a couple of years I had forgotten all about 
it . . . 

> The only time I have a problem w/pub/private keys is when
> I create them on a windows box and try to export it to ssh.  The other
> way around always works for me.

The MSWindows generated keys will work, either from PuTTY or Cygwin, but you 
have to be careful with hard returns at the end of lines (CR/LF).  Use 
Notepad++ to paste your key in and you should find that it works fine.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-12-18 21:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-28 23:53 [gentoo-user] Cannot login with publickey on sshd Mick
2008-11-29  5:28 ` Eric Martin
2008-11-29 12:27   ` Mick
2008-12-01  4:27     ` Eric Martin
2008-12-01  6:53       ` Mick
2008-12-02  6:35         ` Mick
2008-12-18 13:14           ` Eric Martin
2008-12-18 21:17             ` Mick [this message]
2008-12-18 21:34               ` Alan McKinnon
2008-12-18 22:59                 ` Eric Martin
2008-12-19  6:28                   ` Mick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200812182117.42962.michaelkintzios@gmail.com \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox