I need a c# class which provides similar functionality to the program 'putty' for the purpose of using SSH to connect to a remote server and tunnelling over SSH to access a remote database.
The class must make the connection internally and NOT just spawn a command line process to 'plink' or equivalent.
The class should have at least three methods:
1. connectSSHTunnel(string sourceIP, string sourcePort, string destinationIP, string destinationPort, string userName, string Password, string sshPort) - Initiate SSH tunnel to remote mySQL db using supplied arguments.
[url removed, login to view]() - Disconnects the Tunnel & Remote SSH Connection
3. dbTest(string sqlStatement) - Method to test that the SSH tunnel is working as intended. Queries the database with a select statement and returns a value to the UI.
12 pekerja bebas membida secara purata £121 untuk pekerjaan ini
I have experience in developing net framework programs for more than 3 years. As I understand it, this class should be able to send text commands / data via SSH, as it happens in putty?