Windows 上 OpenSSH 服务的安装及启动
下载 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'
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »