netsh advfirewall firewall add rule name="SSHd" dir=in action=allow protocol=TCP localport=22
Now, download the Cygwin installer:
$client = new-object System.Net.WebClient$client.DownloadFile( "http://www.cygwin.com/setup-x86_64.exe","c:\windows\temp\setup-x86_64.exe" )
Now, run the installer:
c:\windows\temp\setup-x86_64.exe
Don't forget to configure OpenSShd (in Cygwin Bash):
$ ssh-host-config -y
$ cygrunsrv -S sshd
$ ssh-keygen -t rsa
Assuming you added lots of nice Cygwin utilities, you now have a very useful server. ;-)
No comments:
Post a Comment