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等工具监控资源使用,定位瓶颈。参考来源: