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"
// Note: Uncomment for Microsoft Visual Studio 6.0
//#import "C:\Program Files\SmartFTP FTP Library\sfFTPLib.dll"

#include <atlcom.h>

::CoInitializeEx(0, COINIT_MULTITHREADED);
CComPtr<sfFTPLib::ISSHConnection> sshConnection;
sshConnection.CoCreateInstance(__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 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. 
This is SetFileLogger, a member of class ISSHConnection. 
ISSHConnection Properties 
Description 
This is AgentKeyBlob, a member of class ISSHConnection. 
Contains an ordered list of supported authentication methods.
Default: { ftpSSHAuthenticationNone, ftpSSHAuthenticationPublicKey, ftpSSHAuthenticationPassword } 
Busy 
Specifies whether an operation is in progress. 
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 Logger, 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 host's public key. 
This is ServerHostKeyAlgorithms, a member of class ISSHConnection. 
Contains the server state. 
This is SocketSettings, a member of class ISSHConnection. 
This is SpeedLimitSettings, a member of class ISSHConnection. 
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 
This is UsePasswordForKeyboardInteractive, a member of class ISSHConnection. 
Specifies the user name to login to the server. 
What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.