1.去github下载安装包
https://github.com/PowerShell/Win32-OpenSSH/releases

在这里插入图片描述2.解压后在解压到的目录下进入cmd,运行:

powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1

在这里插入图片描述
3.安装完后设置下开机启动,然后启动ssh服务就可以了,比在powershell里面半天下载不到安装失败简单快捷得多。

sc config sshd start= auto
net start sshd

在这里插入图片描述

参考文献
安装openssh失败

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐