Debian SFTP性能调优可从以下方面入手:
/etc/ssh/sshd_config
,调整MaxSessions
、MaxStartups
限制并发连接。PubkeyAuthentication
,禁用PasswordAuthentication
,提高认证效率。ChrootDirectory
限制用户目录,减少资源占用。/etc/sysctl.conf
,优化TCP参数(如tcp_tw_reuse
、tcp_window_scaling
)。/etc/security/limits.conf
设置nofile
。rsync
替代小文件传输,利用增量备份提升效率。top
、htop
、iftop
等工具监控资源使用,定位瓶颈。参考来源: