delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/25/08:18:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <016001c1ec53$1344ef10$42a18c09@wdg.uk.ibm.com>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: <cygwin AT cygwin DOT com>, "Leo Meerts" <Leo DOT Meerts AT sci DOT kun DOT nl>
References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020425123156 DOT 00bcb560 AT localhost>
Subject: Re: Problems with protocol 1 from OpenSSH
Date: Thu, 25 Apr 2002 13:16:49 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-OriginalArrivalTime: 25 Apr 2002 12:16:49.0281 (UTC) FILETIME=[1344EF10:01C1EC53]

I'm not an SSH expert, but it looks like you are trying to use a protocol 2 RSA
key for protocol 1.

You should use ssh-keygen -t rsa1 to get a key suitable for protocol 1.

Even better, use the ssh-host-config script, which will set up OpenSSH for you.

See also ssh-user-config for easy generation of user keys

Max.


Leo Meerts <Leo DOT Meerts AT sci DOT kun DOT nl> wrote:
> Problems with protocol 1 from OpenSSH
>
> Hallo,
>
> I tried to get OpenSSH to run from a WindowsXP machine especially the
> protocol 1.
>
> - 1) First I generated the host and public key: (no errors)
>
>        c:\ssh>ssh-keygen -t rsa -f ssh_host_key
>        Generating public/private rsa key pair.
>        Enter passphrase (empty for no passphrase):
>        Enter same passphrase again:
>        Your identification has been saved in ssh_host_key.
>        Your public key has been saved in ssh_host_key.pub.
>        The key fingerprint is:
>        5f:7c:69:a2:3a:88:99:9e:d8:cb:94:9e:34:c8:82:ad leom AT MLFLEO
>
> - 2) Next I started the ssh server (fails!):
>
>        c:\ssh>sshd -d -f sshd_config
>        debug1: sshd version OpenSSH_3.1p1
>        debug1: read PEM private key done: type RSA
>        debug1: private host key: #0 type 1 RSA
>        debug1: read PEM private key done: type DSA
>        debug1: private host key: #1 type 2 DSA
>        Disabling protocol version 1. Could not load host key
>        sshd: no hostkeys available -- exiting.
>
>
> The configuration file: "sshd_config"
>    HostKey                  c:/ssh/ssh_host_key
>    HostDSAKey               c:/ssh/ssh_host_dsa_key
>    PidFile                  c:/ssh/sshd.pid
>    Protocol                 1
>
>    PasswordAuthentication   yes
>    IgnoreRhosts             yes
>    IgnoreUserKnownHosts     yes
>    RhostsAuthentication     no
>    RhostsRSAAuthentication  no
>
> Can anyone tell me what is wrong. If I chose Protocol 2 all is working well.
>
> Regards, Leo Meerts
> ============================================================================
> Dr. W. Leo Meerts
> Department of Molecular and Laser Physics
> University of Nijmegen                  Phone  (+31) 24 365 30 23
> P.O. Box 9010                           FAX    (+31) 24 365 33 11
> NL-6500 GL Nijmegen                     http://www.sci.kun.nl/mlf/leo_meerts
> The Netherlands                         E-mail Leo DOT Meerts AT sci DOT kun DOT nl


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019