Please note that this project is no longer being actively supported and does not support some of the newer connection methods.
The LabSSH and LabSFTP libraries provide interactive SSH communication and SFTP file transfer from a LabVIEW application to a remote machine.
The libraries are shared by Labvolution, a UK Alliance Partner.
For videos on how to use the libraries, see the following links:
Please post questions or comments here or get in touch with me directly.
The source code is attached to this document.
Thank you for contribution to the Reference Design Portal. This looks like a great set of tools. Have you considered also submitting them to the LabVIEW Tools Network which will give you even more exposure?
If you don't mind I will update your posting to include some of the components of the document template (https://decibel.ni.com/content/docs/DOC-47096) we provide for code submissions.
Thanks for approving my submission. I hadn't thought of the tools network but will definitely look in to it, thanks for the link.
I don't mind at all you updating the document to the template.
Hello Greg.I would like to try this design as I'm looking for a suitable solution for SSH communication. I have try NI's partner Labwerx but that wasn't what we need. Curently I'm using own code based on putty but again, I'm not 100% happy about it as it is not suitable for automated tests.Could you please afford this code for LV2014 or is that a problem?Best Regards
First, thanks very much for this. When everything is correct such as connections and passwords, this works wonders.
I am having a problem however when the password is entered wrong or there is an invalid connection. In the "Connect.vi" I get a 1172 error at the password Invoke Node, which I would expect. However, once execution is stopped after that invoke node or the VI completes execution on it's own, LabVIEW crashes. I've tried this on two different PC's with both LabVIEW 2016 and 2018.
Has anyone else had this issue? Are there any ways around this?
I'd like to echo my thanks in providing the VIs to the LabVIEW community!
I'm seeing the same problem you are SteveC_43 and haven't found a way around it. I'm on a W7 64-bit machine using LabVIEW 2016 (32-bit) and observed the exact same behavior you described.
I've also noticed if I manually try to load the LabSSH.dll (or any of the DLLs) into a .NET constructor, I get the error: "An error occurred trying to load the assembly.". So as long as your SSH host is on the right IP and everything else is working.. the VIs work fine.
Very neat. However, I'm also seeing the same as SteveC_43. To me, that issue is significant enough to inspire searching for another SSH option.
Hi Greg and Christian
I found this tool very important. Till now to use sftp I have to use putty in an unusual way...
However, as all my servers are in Linux, I am not able to use it. I have an error on the all Invoke Node (in someway it seems that the invoke has no any method in list)
How can use it? there is a possibility to use this tool with linux/mac servers?
Would it be possible to implement a SFTP server on a VxWorks cRIO-9022 controler with this library ?