X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.8 required=5.0	tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: Putty and pre-shared keys with Cygwin's sshd
Date: Sat, 21 Jan 2012 11:02:07 -0800
Lines: 27
Message-ID: <jff23g$h5j$1@dough.gmane.org>
References: <jfcsbt$eci$1@dough.gmane.org> <1910391597.20120121163937@mtu-net.ru>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
In-Reply-To: <1910391597.20120121163937@mtu-net.ru>
X-Stationery: 0.7.7
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 1/21/2012 4:39 AM, Andrey Repin wrote:
> What key type you generate? How do you save both parts of the key? You 
> said you copied public key, did you saved private key as well? Or you 
> just assumed it was saved somewhere automatically? -- WBR, Andrey 
> Repin (anrdaemon@freemail.ru) 21.01.2012, <16:36> Sorry for my 
> terrible english... 
OK, here's what I did now:

  * Regenerated a SSH-2 DSA key 1024 bit
  * Saved the public and private keys
  * Copied the public key from the box in puttygen that says "Public key
    for the pasting into authorized-keys file" and pasted it into my
    machine's ~/.ssh/authorized_keys
  * Ran putty on the remote machine and made sure to point the
    Connection: SSH: Auth pointed to the private key I saved from
    puttygen (a .ppk file).

Attempted to connect with that and I got:

Using username "adefaria"
Server refused our key
adefaria@ltsdo-adefaria's password:

What did I do wrong?
-- 
Andrew DeFaria <http://defaria.com>
Everybody is somebody else's weirdo.


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

