Installing ssh on a win32 system
by Raju Mathur (raju@sgi.com) aka OldMonk
Thu Aug  6 07:17:46 IST 1998

This document details the steps required to install ssh and the ssh
tools (including sshd) on a win32 system (winduhs 95, winduhs 98 or
winduhs NT) from scratch.

First of all, you will need to get and install the CYG*.DLL's from
Cygnus. These are available in the usertools.exe self-extracting
archive (approximately 3.2mb). FTP URL's for this file are available
at:

	http://www.cygnus.com/misc/gnu-win32/download.html

Remember, you only need the file usertools.exe . After you have
installed that, do the following:

1. Make the following directories:

	/etc
	/usr/local/bin
	/usr/local/sbin
	/tmp (I don't know if this is really needed; can't hurt)

2. Add /usr/local/bin to your PATH in autoexec.bat:

	PATH=%PATH%;/usr/local/bin

3. If you have an existing version of ssh installed, skip to step 7.

4. Generate a new 1024-bit host key:

	ssh-keygen -b 1024 -f /etc/ssh_host_key -N ''

5. Make a default /etc/ssh_config:

	copy host_config.sample /etc/ssh_config

6. Make a default /etc/sshd_config:

	copy server_config.sample /etc/sshd_config

7. copy ssh.exe /usr/local/bin

8. copy ssh.exe /usr/local/bin/slogin.exe
	[If you're using the Cygwin32 bash you can
		ln -s /usr/local/bin/ssh.exe /usr/local/bin/slogin.exe
	]

9. copy ssh-keygen.exe, ssh-agent.exe, ssh-add.exe, scp.exe
	/usr/local/bin

10. copy make-ssh-known-hosts /usr/local/bin
	[You will need Perl installed to use this]

11. copy sshd.exe /usr/local/sbin

12. Test it and use it

Note 1: This distribution is to be considered BETA.

Note 2: I have left the manual entries out of this distribution. If you
need them give me a shout.

Note 3: On win32 systems without user logins (winduhs 95 and
presumably winduhs 98) I have hacked a getpwuid call which returns a
fixed passwd entry. The values of the passwd struct returned are:

char	*pw_name = "root";		/* user name */
char	*pw_passwd = "*";		/* encrypted password */
int	pw_uid = 500;			/* user uid */
int	pw_gid = 500;			/* user gid */
char	*pw_comment = "Faked root user";	/* comment */
char	*pw_gecos = "Faked root user";		/* Honeywell login info */
char	*pw_dir = "/";			/* home directory */
char	*pw_shell = "/bin/sh";		/* default shell */

Note 4: Compiled and tested (hehheh :) on a 486/66 running winduhs 95
with SP1, Cygnus Win32 tools and gcc compiler and Emacs for Winduhs.

Note 5: It's possible that this software (a) violates some copyright
laws, (b) cannot be imported into the US, (c) cannot be exported from
the US, (d) cannot be used in the US, (e) cannot be used outside the
US and/or (f) will give you a terrible flu which will make your nose
run for the next 42 days. Please figure out the appropriate laws which
apply to your situation and if you cannot determine whether you should
run this software or not, do not do so. All the copyright and copying
files I could find are in this distribution, please read all of them
very carefully; after that you can have a couple of aspirins and
determine your course of action. I disclaim all responsibility for any
issues that you face due to using this software.

Comments and feedback to Raju Mathur (raju@sgi.com)

[All trademarks acknowledged]
