DGI.Framework.Communications.Generic.SSHClient 1.0.0
SSH Client for DGI AV Framework
Provides an SSH client communications with servers with connection retries when connection is not successful. It is designed to be used with the DGI AV Framework, but can be used in any .Net application. It features the ability to retry the server connection if it is not successful. The retry interval is fast in the beginning and slows down after consecutive attempts. The timing is ideal for applications when the device might not always be online. This way the network is not task with constant SSH connection traffic.
This driver will not write in the log everytime that a connection was not successful, unless the log level is set to Debug. This is to avoid flooding the log with messages that are not necessary.
The driver implements ICommunications for easy interfacing with other Devices Drivers in the DGI AV Framework.
The constructor takes a configuration class to configure the connection. This can be leveraged by the Host Application to create the configuration file from a JSON file stored in the device and boot up.
It relies entirely on .Net standard libraries which makes it possible to be used in windows, mac and linux applications.
Notes
As its Acronym implies SSH is a Secure Shell implementation. Therefore this driver is assuming that it will be sending commands to the device as if it was a Shell, ie, human readable one line commands terminated by a Return.
Therefore when interfacing with this driver there is no need to append a new line or return character, since a single send message will be interpreted as a one line command. (It will work just fine if the character is inserted though)
This driver does not implement file transfer or anything else that are not one line commands.
A sample program that runs on a Crestron Appliance is included to test integration. This library can be used stand alone, but it normally is part of the bigger DGI Architecture
For more information on how to use this driver, please refer to the Wiki
Showing the top 20 packages that depend on DGI.Framework.Communications.Generic.SSHClient.
| Packages | Downloads |
|---|---|
|
DGI.Framework.Core.RemoteDeviceFactory
Creates Remote Drivers for Remote Devices
|
6 |
.NET Framework 4.7
- DGI.Framework.Core (>= 1.1.0)
- SSH.NET (>= 2024.1.0)
- Zeroconf (>= 3.6.11)
.NET 6.0
- DGI.Framework.Core (>= 1.1.0)
- SSH.NET (>= 2024.1.0)
- Zeroconf (>= 3.6.11)
.NET 7.0
- DGI.Framework.Core (>= 1.1.0)
- SSH.NET (>= 2024.1.0)
- Zeroconf (>= 3.6.11)