win10 开启ssh server服务

安装openssh

  • 设置-应用-应用和功能-管理可选功能-添加功能
    安装OpenSSH服务器和客户端

选择: 应用 

添加功能: 找到openssh 服务器 

验证安装

在cmd界面输入ssh,验证客户端

  1. ssh

  2. usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]

  3. [-D [bind_address:]port] [-E log_file] [-e escape_char]

  4. [-F configfile] [-I pkcs11] [-i identity_file]

  5. [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]

  6. [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]

  7. [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]

  8. destination [command]

SSH服务

同样是命令行界面

重启电脑

  • 启动SSH服务  管理员权限运行cmd命令: net start sshd
    1. net start sshd

    2. OpenSSH SSH Server 服务正在启动 .

    3. OpenSSH SSH Server 服务已经启动成功。

  • 停止SSH服务net stop sshd
  1. net stop sshd

  2. OpenSSH SSH Server 服务已成功停止。

-------------------------------------------------------------------------------------- 

猜你喜欢

转载自blog.csdn.net/u012308586/article/details/107669270
今日推荐