2016年5月28日土曜日

Windows に sshd

噂に聞いていたけど、もう出てた。

以下から、ダウンロード。

https://github.com/PowerShell/Win32-OpenSSH/releases/

インストール手順

以下から抜粋
https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH

\Program Files\OpenSSH-Win64 に展開

今の設定、後で戻すなら。
powershell Get-ExecutionPolicy 

Unrestrictedにしないと、 install-sshd.ps1 が動作しない。
powershell  Set-ExecutionPolicy Unrestricted
インストール
powershell .\install-sshd.ps1

ssh-keygen.exe -Apowershell New-NetFirewallRule -Protocol TCP -LocalPort 22 -Direction Inbound -Action Allow -DisplayName SSH



サービスに sshd があるので起動


アンインストール


Stop-Service sshd
powershell.exe .\uninstall-sshd.ps1
powershell .\uninstall-sshlsa.ps1

0 件のコメント:

コメントを投稿