mina-sshd
mina-sshd copied to clipboard
transfer rate limiting
Description
Does the sftp server implemented by ssh-sftp have a speed-limited function? If so, how should I limit the transmission rate for different users, such as upload rate and download rate. Is there a corresponding case for reference?
Motivation
In order to prevent excessive use of bandwidth, we will set the maximum transmission rate for different users.
Alternatives considered
No response
Additional context
No response
There is no built-in mechanism, but you could achieve this by registering a non-default SftpFileSystemAccessor and override the openFile method to return a file channel that you implement and enforces whatever transfer traffic shaping policy you need.