下载 Windows 版本的 OpenSSH
下载地址:
https://github.com/PowerShell/Win32-OpenSSH/releases
如果无法打开 Github 页面或无法下载,可以使用镜像站:
https://hub.fastgit.org/PowerShell/Win32-OpenSSH/releases
64 位系统下载 OpenSSH-Win64.zip
,32 位系统下载 OpenSSH-Win32.zip
。
解压到 C:\Program Files\OpenSSH
路径
安装
- 以管理员方式打开命令行工具
按组合键Win + X
或右键单击开始按钮,选择Windows PowerShell(管理员)(A)
切换到上面解压的路径:
cd C:\Program Files\OpenSSH
安装 sshd 服务
powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
启动 sshd 服务
net start sshd
设置开机自动启动
Set-Service -Name sshd -StartupType 'Automatic'
版权属于:wshon
本文链接:https://blog.wshon.com/2021/10/windows-sshd.html
转载时须注明出处及本声明
最新回复