2016-01-04

SSH for Windows



http://blogs.msdn.com/b/powershell/archive/2015/10/19/openssh-for-windows-update.aspx
https://github.com/PowerShell/Win32-OpenSSH
https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH


Installation:

  1. Download the 2015-11-09 release
  2. Extract contents to C:\Program Files\OpenSSH-Win32
  3. Start Powershell as Administrator
    • cd 'C:\Program Files\OpenSSH-Win32'
  4. Setup SSH host keys (this will generate all the 'host' keys that sshd expects when its starts)
    • .\ssh-keygen.exe -A
  5. Open Firewall
    • New-NetFirewallRule -Protocol TCP -LocalPort 22 -Direction Inbound -Action Allow -DisplayName SSH
  6. If you need key-based authentication:
    • Install key-auth package
      • run setup-ssh-lsa.cmd
      • reboot
  7. Install and run daemon as NT Service running as Local System
    • .\sshd.exe install
    • Start-Service sshd
    • Make the service start on boot (PowerShell): Set-Service sshd -StartupType Automatic

No comments: