【技术分享】Windows开启SSH服务
2022-06-18 / 0 评论 / 22 阅读 / 3 点赞

【技术分享】Windows开启SSH服务

发光的神
2022-06-18 / 0 评论 / 22 阅读 / 正在检测是否收录...

下载 OpenSSH

lp6dunge.png

Github 下载地址

安装ssh服务

lp6dqa2n.png

下载好后解压,以管理员省份运行 cmd,进入 OpenSSH-Win64 目录,输入以下命令:

// 安装ssh服务
powershell -ExecutionPolicy Bypass -File install-sshd.ps1
// 开放22号端口
netsh advfirewall firewall add rule name=sshd dir=in action=allow protocol=TCP localport=22
// 设置sshd开机自启
sc config sshd start= auto
// 开启sshd服务
net start sshd

lp6c14n4.png

// 查看是否开启22号端口
netstat -ano | findstr :22

lp6cxflc.png

// 通过ssh连接目标主机
ssh 用户名@IP地址

// 例如:
ssh kali@192.168.100.129
3

评论 (0)

取消
0:00