win10 开启ssh server服务
安装openssh
- 设置-应用-应用和功能-管理可选功能-添加功能
安装OpenSSH服务器和客户端
选择: 应用
添加功能: 找到openssh 服务器
验证安装
在cmd界面输入ssh
,验证客户端
-
ssh
-
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
-
[-D [bind_address:]port] [-E log_file] [-e escape_char]
-
[-F configfile] [-I pkcs11] [-i identity_file]
-
[-J [[email protected]]host[:port]] [-L address] [-l login_name] [-m mac_spec]
-
[-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
-
[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
-
destination [command]
SSH服务
同样是命令行界面
重启电脑
- 启动SSH服务 管理员权限运行cmd命令:
net start sshd
-
net start sshd
-
OpenSSH SSH Server 服务正在启动 .
-
OpenSSH SSH Server 服务已经启动成功。
-
- 停止SSH服务
net stop sshd
-
net stop sshd
-
OpenSSH SSH Server 服务已成功停止。
--------------------------------------------------------------------------------------