# WinOpenSSH **Repository Path**: Starrykiller/WinOpenSSH ## Basic Information - **Project Name**: WinOpenSSH - **Description**: 提供了一种在Windows AMD64平台上安装OpenSSH client&Server的方案 - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # WinOpenSSH #### 介绍 提供了一种在Windows x64平台上安装OpenSSH client&Server的方案 目前**只支持**Windows Vista+ ### 安装教程 #### 方法1 (beta) **请使用管理员cmd** ``` git clone https://gitee.com/SMLJerry/WinOpenSSH.git cd WinOpenSSH .\autoInstall.bat ``` #### 方法2 将OpenSSH-Win64.zip解压到`C:\Program Files\OpenSSH`,并将该路径添加到Path 打开cmd(管理员): 执行 1)安装sshd服务 `powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1` 2)开放22号端口 `netsh advfirewall firewall add rule name=sshd dir=in action=allow protocol=TCP localport=22` 3)配置开机自启sshd服务 `sc config sshd start= auto` 4)启动sshd服务 `net start sshd` 这样就可以愉快地使用ssh了!(亲测局域网有效,如果内网穿透或者有公网IP的话广域网也有效)