Skip to content

Instantly share code, notes, and snippets.

@tomfanning
Created October 25, 2017 16:01
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 tomfanning/821eed133cb2192132f58e31a1d86068 to your computer and use it in GitHub Desktop.
Save tomfanning/821eed133cb2192132f58e31a1d86068 to your computer and use it in GitHub Desktop.
Installing an SSH server on Windows
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