Releasing a connection

Top  Previous  Next

To disconnect from an SSH server, invoke the Scp.Disconnect method. You should always disconnect from the SSH server when ending your session.

 

Example

 

[C#]

 

// disconnect

scp.Disconnect();

 

[VB]

 

' disconnect

scp.Disconnect