Skip to content

Instantly share code, notes, and snippets.

View aolszowka's full-sized avatar
🦎
Looking for Bugs

Ace Olszowka aolszowka

🦎
Looking for Bugs
  • Billings, Montana
View GitHub Profile
@aolszowka
aolszowka / dockerfile
Created January 15, 2021 17:17 — forked from MartinSGill/dockerfile
Example Dockerfile for SSH Server on Windows Server Core
FROM microsoft/windowsservercore:1709
# Install Powershell
ADD https://github.com/PowerShell/PowerShell/releases/download/v6.0.0/PowerShell-6.0.0-win-x64.zip c:/powershell.zip
RUN powershell.exe -Command Expand-Archive c:/powershell.zip c:/PS6 ; Remove-Item c:/powershell.zip
RUN C:/PS6/pwsh.EXE -Command C:/PS6/Install-PowerShellRemoting.ps1
# Install SSH
ADD https://github.com/PowerShell/Win32-OpenSSH/releases/download/0.0.24.0/OpenSSH-Win64.zip c:/openssh.zip
RUN c:/PS6/pwsh.exe -Command Expand-Archive c:/openssh.zip c:/ ; Remove-Item c:/openssh.zip