01-12-2026 01:32 AM
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.
01-12-2026 12:31 PM
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.
01-12-2026 11:36 PM
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.
01-13-2026 05:08 AM
You can set an option to enable trust on first use. Does it work then?
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.
01-13-2026 06:24 AM
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.
01-13-2026 07:05 AM
I mean this
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.