Skip to content

Instantly share code, notes, and snippets.

@blark
Forked from abelboldu/wincore-cygwin
Last active May 18, 2017 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blark/92f85066ba13e3cba392b49c641954ac to your computer and use it in GitHub Desktop.
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
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