SecureFTPConnection supports executing remote commands via SSH/SFTP.
Typically, most SFTP servers permit access to a command shell, and various shell commands (most often Unix commands) can be run.
The mechanism for doing that is via InvokeCommandSSH, after a connection has been established:
string listing = ftpConnection.InvokeCommandSSH("ls -al");
Not all SFTP servers will permit the execution of remote commands.