ssh 客户端

默认安装,在命令行中输入 ssh 进行校验安装。

安装方法: 设置-> 应用和功能 -> 可选功能 -> 添加可选功能 -> open ssh 客户端 -> 安装。

ssh 服务端

默认没有安装, 在 命令行中 输入 net start sshd 服务启动了证明已安装。

安装方法: 设置-> 应用和功能 -> 可选功能 -> 添加可选功能 -> open ssh 客户端 -> 安装。

设置开机启动:在服务中找到 open ssh 服务端 设置自动启动

配置 ssh 服务:
编辑 adminstrator 目录下的 .ssh/config 文件,输入一下内容

PermitRootLogin no #(禁止root账户登陆)
PermitEmptyPasswords no #(禁止没有密码)
PasswordAuthentication yes # (是否允许密码登陆,yes是允许,no是禁止)
RSAAuthentication yes
PubkeyAuthentication yes #(允许公钥登陆)
AuthorizedKeysFile .ssh/authorized_keys #(公钥目录)

https://blog.csdn.net/weixin_43833642/article/details/107081139
https://www.cnblogs.com/feipeng8848/p/8568018.html