Back to product page

Protocol property

Determines which protocol is used.


A ProtocolsEnum enumeration. Determines protocol to use for the server.


  • Basic
object.Protocol [= value]  
The Protocol(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodSSHD.
valueA ProtocolsEnum enumeration, as described in settings.


The settings for value are:

Constant Value Description
Raw0 Raw protocol.
Telnet 1 Telnet protocol
SSH22 SSH2 protocol

Since wodSSHServer can operate as Telnet and as SSH server, it means that you can connect to it using any telnet client, even one that is shipped with Windows. In this mode, no encryption is negotiated between the client and the server, and you can not transfer files using SFTP protocol.

This property determines what server you will choose to run - Telnet server (usually on port 23) or SSH server (usually on port 22). One instance of wodSSHServer can run only using one protocol. If you want to support more than one protocol, just create more instances of wodSSHServer - and start them.

NOTE: changing this property will internally change Port property to 22 (if you selected SSH) or to 23 (if you selected Telnet). If you want to use custom ports to run your server, please set Port after setting Protocol property!