Releasing a connection |
To disconnect from an SSH server, invoke the Sftp.Disconnect method. You should always disconnect from the SSH server when ending your session.
Example
[C#]
// disconnect
sftp.Disconnect();
[VB]
' disconnect
sftp.Disconnect