Install instructions for sshd /sshd1 /sshd

Jason Dufair jase@dufair.org
Tue Jun 26 14:48:00 GMT 2001


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@dufair.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/



More information about the Cygwin mailing list