Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I connect to a remote webserver from my home machine using FTP. However, if I don't do anything in FTP for a minute or two, the remote server closes the connection. Consequently, I have to do some stuff in my ftp prompt, like ls or cding a few times to prevent the connection from being closed.

I don't have administrative access to the remote server, so I can't change the FTP settings.

Here's my question: is there anything I can do to keep the FTP connection alive automatically? Is there a command, a script, etc.?

share|improve this question

1 Answer 1

The timeout is configured on the server side so as you said if you cannot change server settings the only way is to do some command.

Some servers support a way to increase the idle time using the "SITE IDLE xxxx" (with xxxx number of seconds) or just "IDLE xxxx" or sometimes "QUOTE TIME xxxx". But this is server dependant and there is a maximum value configured server side as well for this value.

On the other side some FTP clients therefore automatically send a command (usually NOOP: no operation) just the keep the connection steady. I could suggest to try to use one of this clients instead of the standard FTP client.

share|improve this answer
    
Cheers. I checked the commands you suggested, unfortunately none of them work with the remote server. Perhaps I'll use a custom FTP client, or a script to just send ls every thirty seconds or so. –  Newb Dec 19 '13 at 10:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.