Win 2008 r2 安装SSH服务器

1、下载微软开源的openssh
下载最新的二进制版本: https://github.com/PowerShell/Win32-OpenSSH/releases

2、解压到C:\Program Files并重命名为OpenSSH

3、启动Window PowerShell 并进入C:\Program Files\OpenSSH目录
4、输入命令安装sshd和ssh-agent服务

powershell -ExecutionPolicy Bypass -File install-sshd.ps1

在这里插入图片描述
5、打开防火墙,开启22端口

netsh advfirewall firewall add rule name=sshd dir=in action=allow protocol=TCP localport=22

6、设置开机启动

Set-Service sshd -StartupType Automatic
Set-Service ssh-agent -StartupType Automatic

7、启动服务

Start-Service sshd
Start-Service ssh-agent

8、连接测试
使用xshell输入ip,用户名密码为Win 2008 r2登录的用户名和密码
在这里插入图片描述

参考链接 :
Win 2008 r2 安装SSH服务器 :
https://www.jianshu.com/p/b5b760bc56ff

发布了314 篇原创文章 · 获赞 57 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/qq_40907977/article/details/104373867