-
-
Save blark/92f85066ba13e3cba392b49c641954ac to your computer and use it in GitHub Desktop.
install cygwin in HyperV/windows server core from powershell cmd to enable sshd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo Enabling firewall rule... | |
netsh advfirewall firewall add rule name="SSHd" dir=in action=allow protocol=TCP localport=22 | |
echo Downloading cygwin installer... | |
$client = new-object System.Net.WebClient | |
$client.DownloadFile( "https://www.cygwin.com/setup-x86_64.exe", "c:\windows\temp\setup-x86_64.exe" ) | |
.\Windows\Temp\setup-x86_64.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment