Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for each libssh2 example #4

Open
volks73 opened this issue Mar 26, 2020 · 6 comments
Open

Add example for each libssh2 example #4

volks73 opened this issue Mar 26, 2020 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@volks73
Copy link
Member

volks73 commented Mar 26, 2020

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 volks73 added the enhancement New feature or request label Mar 26, 2020
@volks73 volks73 self-assigned this Mar 26, 2020
@volks73
Copy link
Member Author

volks73 commented Mar 28, 2020

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 ded132e.

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
Copy link
Member Author

volks73 commented Mar 28, 2020

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

@volks73
Copy link
Member Author

volks73 commented Mar 30, 2020

Added an example for executing multiple commands with a single channel as of fc15a75. 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
Copy link
Member Author

volks73 commented Mar 30, 2020

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

@volks73
Copy link
Member Author

volks73 commented Jan 17, 2021

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

@keinstein
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants