04-30-2021 11:02 AM
(My apologies that I missed posting this with the initial round of New Feature posts).
The LabVIEW 2021 Beta includes a new palette for using SFTP.
The attached example shows SFTP upload/download with password and key-based authentication.
Debugging tip: in general, if you encounter problems, first ensure that ssh/plink work on the command line.
Known Issues
1. askpass is not implemented for OpenSSH in Windows (if you're using password authentication and don't specify a password, you won't be interactively prompted for one). It should work fine for Putty.
2. Due to issue 1, OpenSSH in Windows does not support specifying a password on the block diagram.
3. Recursive upload/download is not currently implemented.
4. There is not currently a high-level VI to run an SSH command.
5. askpass support on macos and Linux is experimental.
04-30-2021 11:27 AM
One step closer to a native SSH client...
05-03-2021 01:34 PM
@crossrulz wrote:
One step closer to a native SSH client...
100% Pure G, born in LV2009, mostly up and running by LV2012. Time spent implementing SCP and FISH seems a bit wasted these days, but at least my SFTP implementation is still useful.
The hard part is not the encryption/decryption voodoo, but rather creating a nice interactive console. I have a kludge which is kind of nice and implements a lot of the pty codes, but I usually resort to a separate input control (ie. the command input above) and rely on server echo in the output. Still, trying to color code the output is a real pain.
09-30-2021 10:05 AM
Can you post the Snippet of the example code so those of us without the Beta or 2021 can see the block diagram of the example?
10-01-2021 11:17 AM
Here's the example from this thread:
And here's the example that ships with LabVIEW 2021:
10-01-2021 11:25 AM - edited 10-01-2021 11:26 AM
Is this functionality also supported on Linux Desktop LabVIEW?
10-04-2021 08:48 AM
@RVallieu wrote:
Is this functionality also supported on Linux Desktop LabVIEW?
Yes.
12-13-2021 12:33 AM
Does Labview2018 basic version support SFTP ?
12-13-2021 03:22 AM
@ywxiao wrote:
Does Labview2018 basic version support SFTP ?
No, this is a LV21 feature.
OT:
You can probably use stunnel to tunnel FTP traffic to SFTP though (I did this for HTTP). There might be toolkits to get this done.
Of course you can consider using WebDAV instead. I'm not sure it's in LV18 basics, but it is in LV18.