SFTP Object
 
Syntax
 
SFTP.Connect(domainName As String, ByVal port As Long) As Long
 
Description
Connects to an SSH/SFTP server. The domainName may be a domain name or an IP address (example: 192.168.1.10). Both IPv4 and IPv6 addresses are supported. The port is typically 22, which is the standard port for SSH servers.
An SFTP session always begins by first calling Connect to connect to the SSH server, then calling either AuthenticatePw or AuthenticatePk to login, and finally calling InitializeSftp.
Important: When reporting problems, please send the full contents of the LastErrorText property to support@chilkatsoft.com.
Important: All TCP-based Internet communications, regardless of the protocol (such as HTTP, FTP, SSH, IMAP, POP3, SMTP, etc.), and regardless of SSL/TLS, begin with establishing a TCP connection to a remote host:port. External security-related infrastructure such as software firewalls (Windows Firewall), hardware firewalls, anti-virus, at either source or destination (or both) can block the connection. If the connection fails, make sure to check all potential external causes of blockage.
The following algorithms are supported by Chilkat SSH/SFTP:
 
Key Exchange:
curve25519-sha256@libssh.org
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
diffie-hellman-group14-sha256
diffie-hellman-group1-sha1
diffie-hellman-group14-sha1
diffie-hellman-group16-sha512
diffie-hellman-group18-sha512
diffie-hellman-group-exchange-sha256
diffie-hellman-group-exchange-sha1
 
Host Key:
ssh-rsa
ssh-dss
ecdsa-sha2-nistp256
rsa-sha2-256
rsa-sha2-512
ssh-ed25519
ecdsa-sha2-nistp384
ecdsa-sha2-nistp521
 
Cipher:
chacha20-poly1305@openssh.com
aes128-ctr
aes256-ctr
aes192-ctr
aes128-cbc
aes256-cbc
aes192-cbc
twofish256-cbc
twofish128-cbc
blowfish-cbc
3des-cbc
arcfour128
arcfour256
 
Mac:
hmac-sha2-256-etm@openssh.com
hmac-sha2-512-etm@openssh.com
hmac-sha1-etm@openssh.com
hmac-sha1
hmac-sha2-256
hmac-sha2-512
hmac-ripemd160
hmac-sha1-96
hmac-md5
 
Compression:
zlib
zlib@openssh.com
none
 
Returns 1 for success, 0 for failure.
 
See Also