LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Native SSH and SFTP in LabVIEW

Solved!
Go to solution

At the risk of re-opening a can of worms, is there any consideration for adding native SSH and SFTP support for LabVIEW?

 

Using PuTTy/plink is cumbersome and not cross-platform.

Calling a .NET (or any other) external assembly is cumbersome and not cross-platform.

Labwerx SSH has a terrible licensing model (not to mention the additional cost).

 

It is 2015, and SSH/SFTP is ubiquitous and not going away. These protocols should be natively supported in LabVIEW.

 

I have seen this idea on the exchange (http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Native-SSH-and-SFTP-Support/idi-p/1141529), but there hasn't been any movement in 5 years. I would appreciate any news from NI here, even in the negative. If LabVIEW isn't going to support SSH anytime soon, it would be better to find out now.

 

 

 

Message 1 of 5
(8,067 Views)
Solution
Accepted by topic author shansen1

I doubt it is likely to happen any time soon - the LabSSH toolkit is pretty reasonably priced when you compare it to how long it would take you to implement the functionality yourself and there is nothing to stop you from implementing it yourself using the TCP/IP functions which are in LabVIEW. You can of course use the command-line interface to something like WinSCP / PuTTy as well.

 

I did also find a wrapper that someone had made for an Open Source .NET SSH library called Renci

I downloaded a copy from this thread: http://forums.ni.com/t5/LabVIEW/Plink-PuTTY-works-30-of-the-time-using-System-Exec-vi/td-p/3002261

There is also another implementation of the wrapper here: https://decibel.ni.com/content/docs/DOC-41388


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 5
(8,023 Views)

For anyone still chasing SSH from LabVIEW try installing Cygwin (it's free.)  It has ssh built-in.  Just give the full path to the executable when calling it from System Exec.vi.

 

When you setup Cygwin and ssh go through the process of exchanging keys with the system(s) you are going to log into.  It makes command executing quick and painless.

 

Dirk

Message 3 of 5
(7,865 Views)

Hi,

I know this post is a bit old, but now you can use this toolkit :

https://www.vipm.io/package/neosoft_technologies_lv_winscp/

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 4 of 5
(2,147 Views)

Also starting in LabVIEW 2021, there is an SFTP and SSH sub palette under Data Communication.  Apparently SSH is a bit limiting, according to some that have used it.  I believe it doesn't allow for prompting of inputs, and there isn't feedback until the command is complete.  I haven't used either of these functions yet.

0 Kudos
Message 5 of 5
(2,131 Views)