Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3B39031D.8080904@dufair.org> Date: Tue, 26 Jun 2001 16:48:13 -0500 From: Jason Dufair User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.1) Gecko/20010607 X-Accept-Language: en-us MIME-Version: 1.0 CC: cygwin AT cygwin DOT com Subject: Re: Install instructions for sshd /sshd1 /sshd References: <000701c0fe76$0451a730$09fea8c0 AT 3hi25 DOT flashcom DOT com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 1) I recommend forgetting the book altogether. It's simply not relevant to cygwin 2) You should probably reinstall cygwin from scratch. sshd lives in /usr/sbin on a default install and there should be no sshd1 sshd works great on my win2k box from an out-of-the-box cygwin install. I'm still having trouble using it with cygrunsrv, but I haven't dug into it enough yet. Also note that ssh-host-config and ssh-user-config are handy little scripts to get you going. Use them, love them, let them become a part of you. Clark Sims wrote: >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/ > -- Jason Dufair - jase AT dufair DOT org http://www.dufair.org/ "The oldest one captains the bleak white ship of bone with palsied hands The one of middle years wears a hope like chains The youngest one cries tears of scarlet, and adjusts her latest smile" -- ToasterLeavings -- 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/