SmartFTP FTP Library
ISSHConnection Interface

The ISSHConnection interface is implemented by the SSHConnection class.

ISSHConnection
IDL
interface ISSHConnection : IDispatch;

VBScript

Dim objSSH
Set objSSH = CreateObject("sfFTPLib.SSHConnection")
...
Set objSSH = Nothing

 

JavaScript

var objSSH = new ActiveXObject("sfFTPLib.SSHConnection");

 

C#

CSSHConnection ssh = new CSSHConnection();

 

C++

#import "libid:7A3A786C-EB8C-43b3-BC10-8D09ACF5D195" version("3.0")
// Note: Uncomment for Microsoft Visual Studio 6.0
//#import "C:\Program Files\SmartFTP FTP Library\sfFTPLib.dll"

::CoInitializeEx(0, COINIT_MULTITHREADED); // Init COM
sfFTPLib :: ISSHConnectionPtr pSSH;
pSSH.CreateInstance(__uuidof(sfFTPLib::SSHConnection));
::CoUninitialize();
ISSHConnection Methods 
Description 
Aborts the current operation. 
This is Close, a member of class ISSHConnection. 
Connects to remote host. 
This is CreateChannel, a member of class ISSHConnection. 
This is CreateSFTPConnection, a member of class ISSHConnection. 
Disconnects from the remote host.
To ungracefully close the connection use the Close method. 
This is SendPacket, a member of class ISSHConnection. 
ISSHConnection Properties 
Description 
Contains an ordered list of supported authentication methods.
Default: { ftpSSHAuthenticationNone, ftpSSHAuthenticationPublicKey, ftpSSHAuthenticationPassword } 
This is BaseSocketLayer, a member of class ISSHConnection. 
Busy 
Specifies whether an operation is in progress. 
This is Channels, a member of class ISSHConnection. 
The client id.
Default: SmartFTP 
The client host key for a "Host-Based" authentication (ftpAuthenticationHostBased). 
The client host name for the "Host-Based" authentication (ftpAuthenticationHostBased). 
Specifies zlib compression level.
Default: 5 
Contains an ordered list of supported compression methods.
Default: { ftpSSHCompressionzlib, ftpSSHCompressionNone } 
This is ConnectionInfo, a member of class ISSHConnection. 
Contains the connection status. 
Contains an ordered list of supported encryptions.
Default: { ftpEncryptionAES128, ftpEncryption3DES, ftpEncryptionAES192, ftpEncryptionAES256, ftpEncryptionBlowfish, ftpEncryptionCAST128, ftpEncryptionDES 
This is GSSAPIMethod, a member of class ISSHConnection. 
Host 
Host name of the server. 
This is KeepAliveInterval, a member of class ISSHConnection. 
Contains a list of supported key exchange algorithms.
Default: { ftpKeyExchangeDiffieHellmanGroupExchangeSHA256, ftpKeyExchangeDiffieHellmanGroupExchangeSHA1, ftpKeyExchangeDiffieHellmanGroup1SHA1, ftpKeyExchangeDiffieHellmanGroup14SHA1 } 
Contains an ordered list of preferred language ids (LANGID). 
This is LimitSocketLayer, a member of class ISSHConnection. 
This is LogFile, a member of class ISSHConnection. 
MACs 
Contains an ordered list of supported HMAC algorithms.
Default: { ftpMACSHA1, ftpMACMD5, ftpMACSHA196, ftpMACMD596, ftpMACRIPEMD160 } 
The password to login to server. 
Port 
The port number of the server.
Default: 22 
Specifies the user's private key. 
Specifies the protocol family of the connection.
Default: ftpProtocolFamilyUNSPEC 
Specifies the preferred protocol family.
Default: ftpProtocolFamilyINET4 
Contains the Proxy object. 
Contains the public key returned by the server/host. 
This is ServerHostKeyAlgorithms, a member of class ISSHConnection. 
Contains the server state. 
Disables encryption after authentication.
Default: false 
Specifies the timeout in seconds of the connection. 
Specifies if the component uses a message loop while waiting for an operation to return. The message loop dispatches the windows messages queued in the windows message queue.
Default: false 
Specifies the user name to login to the server. 
This is WorkerThread, a member of class ISSHConnection. 
What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.