delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/26/16:05:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <000701c0fe76$0451a730$09fea8c0@3hi25.flashcom.com>
From: "Clark Sims" <csims AT templartrading DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Install instructions for sshd /sshd1 /sshd
Date: Tue, 26 Jun 2001 14:27:19 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Loop-Detect: 1

I purchased the book "SSH The Secure SHell, The Definitive Guide", because
it devoted 2 chapters to ssh on NT. They recommend Sergy Okhapkins port of
sshd, scp1 and sch1, because ""Most ports that we've seen are unfinished, no
longer in development, or distributed without source code. .... Okhapkin's
software works fine, but the installation is difficult"

They then go on to give detailed instructions on how to install ssh1 and
sshd. Unfortunately, the instructions for installing sshd are incorrect.
They say to copy sshd.exe to a directory in the path. However sshd, in the
tar file, that they recommend to download, does not exist. There is a sshd,
which is a simlink to shdd1.exe. They say to run keygen as follows:

ssh-keygen1 -f /etc/ssh_host_key -N " " -C " "

I then modify /etc/sshd_config to:

HostKey            /etc/ssh_host_key
PidFile              /etc/sshd.pid
RandomSeed  /etc/ssh_random_seed

I then change /usr/local/sbin and run sshd1.exe as follows

./sshd1.exe -d

I get the following :

debug: sshd version 1.2.26 [i586-pc-cygwin32]
Could not load host key: /etc/ssh_host_key
fatal: Please check that you have sufficient permissions and the file
exists.

But the file exists and I have permisions. Infact, the current user owns the
file, and can edit it with a hex editor, or delete it for that mater.

On anther machine I have done a fresh install of the cygnus software.
I generate the key as follows:

ssh-keygen -f /etc/ssh_host_key -N " " -C " "

I have left /etc/sshd_config, unchanged from the download

I then change to /usr/sbin and run sshd.exe as follows:

./sshd.exe -d

I get the following messages:
debug1: Seeding random number generator
debug1: sshd version OpenSSH_2.9p1
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.

I have studied the error messages in the archives, and have checked that my
drives are mounted as binary. The command mount, produces:

e:\root\bin on /usr/bin type system (binmode)
e:\root\lib on /usr/lib type system (binmode)
e:\root on / type system (binmode)
c: on /cygdrive/c type user (binmode,noumount)
d: on /cygdrive/d type user (binmode,noumount)
e: on /cygdrive/e type user (binmode,noumount)
g: on /cygdrive/g type user (binmode,noumount)
h: on /cygdrive/h type user (binmode,noumount)
i: on /cygdrive/i type user (binmode,noumount)
m: on /cygdrive/m type user (binmode,noumount)
o: on /cygdrive/o type user (binmode,noumount)
p: on /cygdrive/p type user (binmode,noumount)
q: on /cygdrive/q type user (binmode,noumount)
r: on /cygdrive/r type user (binmode,noumount)
s: on /cygdrive/s type user (binmode,noumount)
t: on /cygdrive/t type user (binmode,noumount)
x: on /cygdrive/x type user (binmode,noumount)
y: on /cygdrive/y type user (binmode,noumount)
z: on /cygdrive/z type user (binmode,noumount)

The only thing that is unusual, is that e:\root has been mounted as / ,
rather than c:\,  but I don't think this should matter should it?

I would appreciate any help.

Thanks in Advance,

Clark Sims



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