我需要为我们公司的 sftp 服务器进行专门的配置,以便能够以安全的方式与我们的客户交换文件(服务器运行 Debian Linux 8.7)。
Run Code Online (Sandbox Code Playgroud)customers <--------- All support personel entry point | +--customer_001 <-------- Customer 1 entry point | | | +--files... | +--customer_002 <-------- Customer 2 entry point | | | +--files... | +--customer_003 <-------- Customer 3 entry point | | | +--files... . . .
我将 sshd 配置如下:
[...]
PasswordAuthentication yes
[...]
# Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
[...]
Match Group kunden
ChrootDirectory %h
ForceCommand internal-sftp
Match …
Run Code Online (Sandbox Code Playgroud)