LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2025: SSH Library

Hi,

 

I am using Labview 2025 Q3 Windows 64 bit on my machine.

My machine is connected to a machine running on Linux (Fedora 64 bit) through ethernet cable, I am trying to connect to the linux machine using SSH library through labview. However I am getting standard error "Host key verification failed".

I have followed steps given in this article

What could be the possible mistake?

 

PS: I tried running same command in windows powershell and am able to login to the linux machine.

0 Kudos
Message 1 of 6
(151 Views)

The article isn't very clear on what to actually type, but I believe that "user" is the user name and "IP_Address" is the IP address of the Linux box. I don't think you're supposed type it in verbatim. Just in case you hadn't thought of that already.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 6
(100 Views)

Hi billko,

 

Thanks for the reply. I have carefully replaced user with the actual user name and IP address with the valid IP address. Also I am able to communicate with Linux box using the very same user name and IP address using windows PowerShell.

The issue is faced only when I try to communicate through Labview. So I am trying to understand what makes it different in labview or am I missing something in the code.

0 Kudos
Message 3 of 6
(68 Views)

You can set an option to enable trust on first use. Does it work then?

 

Trust on First Use (TOFU)Trust on First Use (TOFU)

 

Why do you execute an SSH command on the remote host? The LabVIEW SSH library does not maintain a connection, so this will not work. I also do not think that it supports jump hosts.

0 Kudos
Message 4 of 6
(41 Views)

I set enable trust on first use to True and still the same error!

 

The reason for using SSH is, like I said in my main question, I am trying to communicate with Linux machine from windows machine through labview.

Either I could use TCP or SSH. So I chose SSH. 

 

Any further guidance would be appreciated.

0 Kudos
Message 5 of 6
(29 Views)

I mean this

 

cordm_0-1768309416175.png

 

Currently, the VI connects to a machine and on that machine executes "ssh -T root@192.168.???????". So the error message may be coming from the remote machine.

Replace ssh -T ... with your actual command.

 

0 Kudos
Message 6 of 6
(20 Views)