在Debian中调整SFTP传输速度限制,主要有以下两种方法:
sudo apt-get install trickle。然后编辑/etc/ssh/sshd_config文件,添加Match User <username>,接着使用ForceCommand /usr/bin/trickle -d <download_limit> -u <upload_limit> sftp-server,将<username>、<download_limit>和<upload_limit>分别替换为用户名、下载限制和上传限制(单位为kbps)。最后重启SSH服务,命令是sudo systemctl restart sshd。/etc/ssh/sshd_config文件,添加Match User <username>,然后使用ForceCommand internal-sftp,并设置BandwidthLimit <limit_in_kbps>,将<username>和<limit_in_kbps>替换为相应的用户名和带宽限制值(单位为kbps)。之后重启SSH服务即可。