Sha256: 6fcbbe88dacbf2e2363b3a9803d587d2c0048e0af29c297b0116f4d5f0935be7

Contents?: true

Size: 1.81 KB

Versions: 16

Compression:

Stored size: 1.81 KB

Contents

REM http://webcache.googleusercontent.com/search?q=cache:SjoPPpuQxuoJ:www.tcm.phy.cam.ac.uk/~mr349/cygwin_install.html+install+cygwin+ssh+commandline&cd=2&hl=nl&ct=clnk&gl=be&source=www.google.be

REM create the cygwin directory
cmd /c mkdir %SystemDrive%\cygwin

cmd /c bitsadmin /transfer CygwinSetupExe /download /priority normal http://www.cygwin.com/setup-x86.exe %SystemDrive%\cygwin\cygwin-setup.exe

REM goto a temp directory
cd %SystemDrive%\windows\temp

REM run the installation
cmd /c %SystemDrive%\cygwin\cygwin-setup.exe -q -R %SystemDrive%\cygwin -P openssh,openssl,curl,cygrunsrv,wget,rebase,vim -s http://cygwin.mirrors.pair.com

%SystemDrive%\cygwin\bin\bash -c 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin cygrunsrv -R sshd'

REM /bin/ash is the right shell for this command
cmd /c %SystemDrive%\cygwin\bin\ash -c /bin/rebaseall

cmd /c %SystemDrive%\cygwin\bin\bash -c 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin mkgroup -l'>%SystemDrive%\cygwin\etc\group

cmd /c %SystemDrive%\cygwin\bin\bash -c 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin mkpasswd -l'>%SystemDrive%\cygwin\etc\passwd

%SystemDrive%\cygwin\usr\bin\sleep 1

%SystemDrive%\cygwin\bin\bash -c 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin /usr/bin/ssh-host-config -y -c "ntsecbinmode" -w "abc&&123!!" '

%SystemDrive%\cygwin\usr\bin\sleep 2 

cmd /c if exist %Systemroot%\system32\netsh.exe netsh advfirewall firewall add rule name="SSHD" dir=in action=allow program="c:\cygwin\usr\sbin\sshd.exe" SSHD enable=yes

cmd /c if exist %Systemroot%\system32\netsh.exe netsh advfirewall firewall add rule name="ssh" dir=in action=allow protocol=TCP localport=22

%SystemDrive%\cygwin\usr\bin\sleep 2

net start sshd

# Fix corrupt recycle bin
# http://www.winhelponline.com/blog/fix-corrupted-recycle-bin-windows-7-vista/
cmd /c rd /s /q c:\$Recycle.bin

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.5.0.alpha3 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.5.0.alpha2 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.5.0.alpha1 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.4.5.1 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.4.5 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.4.5.pre1 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.4.4 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.4.3 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.4.2 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.4.1 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.4.0 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.3.12 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.3.11 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.3.10 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
veewee-0.3.9 templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat