UBC Physics & Astronomy
physdc1 - PHYS_CLAB PDC
142.103.235.6 - 172.16.0.? (PRIV TEACH)

AMI BOIS 1.00.04.DTO,  Intel PD44FX Motherboard, S/N: ISPD72503336
Adaptec AHA-2940 Ultra/Ultra W SCSI controller

2005-10-04 Replaced power supply.

01-12-12
Installed Cygwin by downloading setup.exe and using it.  Other than defaults, added openssh, vim, man
Created /etc/sshd_config (see below)
Ran ssh-keygen by opening a Cygwin window (from desktop icon) and using this command:
ssh-keygen -t dsa -f /etc/ssh_host_dsa_key -N ""
Installed sshd as a service using srvany:  E:\NTRESKIT\instsvc SSHD E:\NTRESKIT\Srvany.exe
Run the Registry Editor (REGEDT32.EXE):
-> under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService: create a 'Parameters' key
-> under the above key, create an 'Application' value of type REG_SZ and specify there the full path of your app executable (including the extension). For example:   Application: REG_SZ: D:\TOOLS\VI.EXE
-> under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService: create a 'Parameters' key
-> under the above key, create an 'Application' value of type REG_SZ and specify there the full path of your app executable (including the extension). For example:  Application: REG_SZ: D:\TOOLS\VI.EXE

Upon trying to start SSHD as a service, found I had to copy some ddl files to E:\Cygwin\usr\sbin from E:\Cygwin\bin
(cygcrypto.dll, cygregex.dll, cygwin1.dll, cygz.dll)

In order to login as bigcheese, I had to run the passwd program in a cygwin window.

# This is ssh server systemwide configuration file.
Port 22
Protocol 2,1
ListenAddress 0.0.0.0
# Uncomment the following lines according to the used authentication
HostKey /etc/ssh_host_key
HostKey /etc/ssh_host_rsa_key
HostKey /etc/ssh_host_dsa_key
ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin yes
# Don't read ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
#
# The following setting overrides permission checks on host key files
# and directories. For security reasons set this to "yes" when running
# NT/W2K, NTFS and CYGWIN=ntsec.
#StrictModes no
StrictModes yes

X11Forwarding no
X11DisplayOffset 10
PrintMotd yes
KeepAlive yes

# Logging
SyslogFacility AUTH
LogLevel INFO
#obsoletes QuietMode and FascistLogging

RhostsAuthentication no
#
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no

RSAAuthentication yes

PasswordAuthentication yes
PermitEmptyPasswords no

CheckMail no
UseLogin no

#Uncomment if you want to enable sftp
Subsystem      sftp    /usr/sbin/sftp-server
MaxStartups 10:30:60
 



For more assistance contact Ron Parachoniak, rap@physics.ubc.ca ( SystemTools )
 
webmaster@physics.ubc.ca [Dept. Home Page] last updated: 02 May 01