ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

Windows10 安装 OpenSSH 配置 SFTP服务器

2026/8/10 18:00:23 拓冰建站 浏览量
Windows10 安装 OpenSSH 配置 SFTP服务器

1、下载

https://github.com/PowerShell/Win32-OpenSSH/releases

2、默认安装

3、创建用户

 

4、修改配置文件

C:\ProgramData\ssh\sshd_config# 最后一行后面加入
ForceCommand internal-sftp# 设置用户登录后默认目录
Match User sftpuser
ChrootDirectory C:\SFTP# Disable tunneling, authentication agent, TCP and X11 forwarding.
PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
PermitTTY no

5、重启服务

net stop sshd
net start sshd

6、防火墙放行22端口