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端口

 

 

相关推荐

  1. Windows 11 安装配置

    2024-02-03 22:48:01       43 阅读
  2. linux服务器配置openssl

    2024-02-03 22:48:01       9 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-02-03 22:48:01       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-02-03 22:48:01       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-02-03 22:48:01       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-02-03 22:48:01       20 阅读

热门阅读

  1. 数据治理体系建设

    2024-02-03 22:48:01       32 阅读
  2. Python编程的世界

    2024-02-03 22:48:01       33 阅读
  3. linux系统ansible工具的剧本发布workpress剧本编写

    2024-02-03 22:48:01       31 阅读
  4. 开源软件:推动软件行业变革的引擎

    2024-02-03 22:48:01       27 阅读
  5. 开源软件的影响力

    2024-02-03 22:48:01       32 阅读