Results 1 to 4 of 4
Hi group,
I have posted this question on other forums with no working solutions.
Is there a way to limit, on the server side, the size of a sftp or
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-31-2009 #1Just Joined!
- Join Date
- May 2005
- Posts
- 15
file size limit with sftp and/or scp
Hi group,
I have posted this question on other forums with no working solutions.
Is there a way to limit, on the server side, the size of a sftp or
scp file transfer?
I tried to use ulimit but that did not work.
- 04-22-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,142
I've been looking, but to no avail. There doesn't seem to be a file-size limit parameter in any of the config files for the ftp daemons my system supports - ftpd, tftpd, vsftpd.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-24-2009 #3Just Joined!
- Join Date
- May 2005
- Posts
- 15
- 04-24-2009 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,142
Get the source for your favorite ftpd implementation and modify it. If you need it badly enough to pay to have it done, contact me via private message. I've done complete implementations of the FTP and TELNET protocols (client and server) from the Whitebook RFC specs in the past, and contract software is what I do.
In any case, the ftp client sends the size of the file it is transferring to the server, which can check it's limit settings and return an error if the size is excessive. The things that would have to be done is to add a maxsize parameter to the configuration file, code to parse that in the server, a server variable to hold that value, and code in the server's SIZE command/option handler(s) to validate the value sent from the client.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote

