Created
October 25, 2017 16:01
-
-
Save tomfanning/821eed133cb2192132f58e31a1d86068 to your computer and use it in GitHub Desktop.
Installing an SSH server on Windows
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
From cmd.exe: | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
choco install mls-software-openssh -y | |
If your pageant offers lots of SSH keys, you will get an error "too many authentication failures" | |
To overcome, in C:\Program Files\OpenSSH\etc\sshd_config, set: | |
MaxAuthTries 10 | |
restart OpenSSHd service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment