CygwinSSHWindows
From backuppc
Install Cygwin and SSH on a Windows Client
this procedure has been tested successfully on Windows 2000 and Windows XP
- Create folder c:\cygwin
- Create folder c:\cygwin\packages
- Download cygwin's setup.exe and place it into c:\cygwin
- Install Cygwin (launch setup.exe)
- Root Directory = c:\cygwin
- Local Package Directory = c:\cygwin\packages
- Choose a mirror
- Click on 'View' so that it shows: Full (all Packages)
- Install some additional packages:
- >> (You need at least: openssh, diffutils and rsync) but I suggest these packages:
- links
- mc
- nano
- diffutils
- openssh
- rdiff-backup
- rsync
- rsnapshot
- screen
- shutdown
- tcp_wrappers
- unzip
- wget
- zip
- Create Environment Variables.
- Right click My Computer, Properties, Advanced, Environment Variables, System Variables
- add a Variable: CYGWIN = ntsec tty
- edit Variable PATH, add: ;c:\cygwin\bin
- Just to be sure reboot.
- Make sure every Windows user has a password set (System Preference / User Accounts) and Make sure every Windows user has done the following at least once (this will create home directories for every user):
- Login in as the Windows user
- pop a console command screen by clicking Start, Run, cmd (not sure if really needed)
- also start cygwin at least once.
- Setup SSH. Bring up a Cygwin Shell:
- Create ssh-keys with: ssh-host-config -y
- If you get an error message (Windows XP)
- >> ERROR: Problem with /var directory. Exiting.
- >> Change permissions: chmod 775 /var
- When stop and question: "environment variable CYGWIN =" type in: ntsec tty
- Start ssh with: net start sshd
- Synchronize User-Accounts with Cygwin. Login as Administrator, start a Cygwin Shell:
- mkpasswd -cl > /etc/passwd
- mkgroup --local > /etc/group
- Test SSH while in Cygwin: ssh $USER@$COMPUTERNAME
Further reading:
