LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP with LV 8.0

I am trying to figure out if LV ever put SFTP into the newer software packages.  I am trying to grab a file from a Linux server that only allows computers to authenticate using SFTP or ssh but am having trouble in LV trying to talk to the Linux box.  The server doesn't want to authenticate me with an FTP call.  If SFTP is not an option has anyone figured out a work around to get a file from a computer that will not authenticate only using FTP?
 
The Linux server is an embedded board and is running an embedded Linux OS so LV etc. is not an option.   
 
 
Thanks in advance!

David
0 Kudos
Message 1 of 7
(4,638 Views)
The most current version of LabVIEW has no built-in support for sftp. Don't know if NI is considering adding it, but I would doubt it.

Would an sftp client do the job for you: http://winscp.net/eng/docs/introduction

(You didn't mention what OS the client is on, so I took a stab at it.)


Message Edited by smercurio_fc on 10-24-2006 09:08 AM

Message 2 of 7
(4,621 Views)

Thanks for answering, that's unfortunate that NI isn't considering adding it in the future.  A client won't really work for my application as my program needs to be stand alone and have no input from the user.  I am going to be grabbing a file of the Linux box, pulling into LV on an XP machine and then shipping it back when I make the changes needed in the file.  This all needs to be done "behind the scenes" so to speak. 


Thanks again!

0 Kudos
Message 3 of 7
(4,609 Views)
You can always post a suggestion to include this feature here.

Since you're running the client on a Windows box, how about an ActiveX control? This allows you to manipulate the client from within LabVIEW. A quick search on the "internets" turned up:

http://www.weonlydo.com/index.asp?showform=SFTP
http://www.eldos.com/sbb/activex-sftp.php
http://www.tucows.com/search?search_terms=sftp&search_scope=win&search_adv=0&search_size=&search_siz...
  (I noticed a couple of "free" ones in the list at Tucows)

Good luck

Message 4 of 7
(4,601 Views)

Does the internet toolkit for Labview 8.6 support SFTP, SCP?

0 Kudos
Message 5 of 7
(4,321 Views)

Hi there

 

winscp has a command line/scripting feature. see http://winscp.net/eng/docs/scripting for details. You could call winscp with system exec.vi and pass the command line parameters from inside LV.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 6 of 7
(4,304 Views)

chrisger  already gave a good direction how to use WinSCP. What I did are:

1. get WINSCP server's host from my UUT and it let file transfer pass WinSCP security check.

2. creat a WinSCP script and save it to a file because command line " open user@192.168.0.1 -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:........................"" is too long for LabVIEW System Exac.vi and it can't be executed.

3. then use LabVIEW System Exac.vi to pass the file that you want to transfer by using the script that generated above.

0 Kudos
Message 7 of 7
(4,146 Views)