First check if your IP has been banned:
Last few days I was trying to download large database dump on my new mac book pro over a ssh connection. But as soon as the computer goes to sleep it breaks the file transfer. And, I am still figuring out how mac settings work :-(
Below are few commands to empty content of a file that already exists in a directory.