Last active
December 14, 2017 17:19
-
-
Save JeremyNevill/a25763ff2dfe570c22d16e0e6e4df50f to your computer and use it in GitHub Desktop.
Windows_OpenSSH_Install
This file contains hidden or 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
| choco install openssh | |
| cd "C:\Program Files\OpenSSH-Win64" | |
| powershell -ExecutionPolicy Bypass -File install-sshd.ps1 | |
| .\ssh-keygen.exe -A | |
| powershell -ExecutionPolicy Bypass '.\FixHostFilePermissions.ps1 -Confirm:$false' | |
| Set-Service sshd -StartupType Automatic | |
| Set-Service ssh-agent -StartupType Automatic | |
| Start-Service ssh-agent | |
| Start-Service sshd |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This badboy installs openssh on windows (works on 2012r2 and 2016 at least) and configures it to run as a service.
You can then ssh youruser@yourserver.ip to ssh onto the windows box.
Handy for creating things like ssh tunnels between machines.