06-16-2022 03:59 AM
There is a new function called "OpenSSH Exec" available in LabVIEW 2021. On calling this function and sending Username, Password, IP and Linux command, i am getting the response. But the challenge here is its not interactive - My Requirement is - when i send a Linux command, i need wait for parameter and then enter a value and then wait for 2nd parameter, again enter value and so on till all parameters are feeded with values. This works perfectly well when i try with command line ssh. But when i send same Linux command on above LabVIEW function, it responds with all parameters in 1 shot without waiting for my input value. Image shown below for reference. Any one has worked on ssh function in LabVIEW and have any suggestions to handle this? I suspect this function is sending return key internally till some End of text/response is received.
06-16-2022 07:55 AM
NI is supposedly working on a session-based SSH (see the current LabVIEW Roadmap). What I do currently is use a .NET library (SSH.NET) and I built a class wrapper around this library.
06-16-2022 08:34 AM
Another option is to use the Encription Compendium library from https://lvs-tools.co.uk/software/encryption-compendium-labview-library/
Not free but it beats trying to cook your own LabVIEW library if you just want to use something rather than DYO (develop your own).
05-22-2023 09:52 AM - edited 05-22-2023 09:53 AM
Hey Girish
Did you solve this? I am having the exact same problem you posted
Please let me know
Ana
05-23-2023 02:42 AM
Hey arohr,
From NI Labview, it's not possible to have interactive SSH session. Every time we poll on SSH in labview, it creates a new instance. So, i had to use Python method and call it from Teststand wherever SSH session was needed.
Thanks
Girish
05-23-2023 04:31 AM
ok, thanks
I ended up using third-party ALAB SSH toolkit
Ana
06-13-2023 01:19 PM
How did you go about using the python method to call an SSH session?
06-13-2023 11:59 PM
I have used Paramiko library (available online). Its pretty simple to use.
06-14-2023 09:44 AM
Do you have to call it from testStand or would the library load directly if I use the native python module within Labview?