Back to product page
- Introduction
- Overview
- License Agrement
- Getting Started
- Objects
- Enumerations
- wodSSH
- Methods
- Properties
- AllocatePty
- Authentication
- Blocking
- ClientName
- Columns
- Command
- Compression
- DataOut
- DataReady
- Encoding
- Encryption
- EncryptionList
- ErrorText
- ExitSignal
- ExitStatus
- FIPS
- ForwardHost
- ForwardPort
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeyForward
- KeySignatureList
- LastError
- Login
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- Rows
- ShowStdErrorMessages
- State
- StateText
- StripANSI
- StripNull
- Subsystem
- TerminalSpeed
- TerminalType
- Timeout
- UseIPv6
- Version
- Events
- IwodSSHNotify
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Connect method
Connects to the remote server.
Type
NoneSyntax
- Basic
object.Connect [Hostname], [Port], [Protocol]
The Connect(object,Hostname,Port,Protocol) syntax has these parts:
The Connect(object,Hostname,Port,Protocol) syntax has these parts:
object | An expression evaluating to an object of type wodSSH. |
Hostname | Optional. A Variant value. Holds the name or IP address of the server. |
Port | Optional. A Variant value. Specifies the port on the server. |
Protocol | Optional. A Variant value. Specifies which protocol to use. |
Remarks
The Connect method will initiate a connection between wodSSH and a remote server. It can be used only if wodSSH is not connected with a server at the time (in other words, if State is set to Disconnected).If an error occurs during connection, a Connected event will be fired with the ErrorCode set to the error that occurred. If ErrorCode is set to 0, wodSSH successfully connected with the remote server.
Upon connection, wodSSH may perform an initial 'handshake' with the remote server, depending on the protocol selected. For example, when using the Telnet protocol wodSSH will negotiate connection parameters. For SSH protocols, it will negotiate encryption algorithms and other properties related to a secured connection.
After the handshake is completed, wodSSH may automatically authenticate with the server, depending on whether the Login and Password properties are set.
Optionally, if the Command property is set, wodSSH will send the command, wait for an answer from the server and disconnect automatically. If the Command property is empty (default), wodSSH will open a shell on the remote server and it will allow you to send/receive data.