I just did a script that does maintainance work remotelly through SSH and SFTP.
The script logs in the target server and starts backing-up/removing/editing files.

It was needed because I needed a way to clean up unwanted scripts without leaving any traces on the server ( don't ask me why ).

Anyway, Net:SSH rulez ... although I did found a nasty bug in Net::SFTP (don't use get_file ... it cannot download large files).