libssh2-labview icon indicating copy to clipboard operation
libssh2-labview copied to clipboard

Add example for each libssh2 example

Open volks73 opened this issue 5 years ago • 6 comments

The libssh2 C library has many examples for implementing various features with communication via a SSH connection. LabVIEW-based examples should be created for each of these examples using this toolkit.

volks73 avatar Mar 26 '20 14:03 volks73

While not a full-fledged example at the moment, a VI snippet for executing a single command on a remote SSH server was added to the Examples section of the README in ded132e468c4fd11b572169f76f5cf6ed38627d2.

Some additional details were also added about the origins and similarities of each VI snippet in the README to examples from the libssh2 C library.

volks73 avatar Mar 28 '20 19:03 volks73

Added a single command execution example based on the VI snippet as of eee93296ae108e6d07cdd4bf135739106153fc74.

volks73 avatar Mar 28 '20 19:03 volks73

Added an example for executing multiple commands with a single channel as of fc15a758cea94768babe053f16270ac7edd483bd. This is not strictly an example from the libssh2 library, but it is a question that appears to come up frequently on their mailing list and a product of #5.

volks73 avatar Mar 30 '20 20:03 volks73

Added an example for executing multiple, sequential commands using multiple channels as of 7334dd76cb5020b223e912e019c3dee27f7dc42a. This is not strictly an example from the libssh2 library, but it is useful based on discussions from #5.

volks73 avatar Mar 30 '20 21:03 volks73

Added examples for uploading and downloading small files using SFTP as of 3f8c4df11f2e0a830da17761ee7d3462a35a1564. This is not strictly an example from the libssh2 library but these are very close to the sftp.c and sftp_write.c examples.

volks73 avatar Jan 17 '21 20:01 volks73

Maybe I have overlooked it, but as far as I can see, none of the examples qualifies for the first 'S' in Secure SHell, as the server can be any man-in-the-middle without authenticating the server to the client. Could someone add an example of server key verification based on contemporary cryptographic hashes (both md5 and sha1 should be considered to be unsafe)?

Both scenarios are interesting: Key verification and known_hosts-file based verification.

keinstein avatar May 11 '24 19:05 keinstein