03-27-2023 02:16 AM
Hello everybody
i want to send SSH commands from cRIO to a measurement Computer. right now i do it with PUTTY in host Computer. how can i do it without PUTTY?
03-27-2023 02:25 AM
Why fix what's not broke? Any reason why you don't want to stick with PuTTY? (For example, is this going to be used cross-platform where PuTTY may not exist?)
I actually find the PuTTY solution to work quite well with LabVIEW.
03-27-2023 08:11 AM
I'm going to assume that you mean you want to send SSH commands without have to use the Putty GUI running on Windows. There is a command line version of Putty called PLink. There are only precompiled binaries for Windows, but it looks like you can make your own Linux-compatible ones (can run on cRIO) from source:
https://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#faq-unix
"
A.3.2 Is there a port to Unix?
There are Unix ports of most of the traditional PuTTY tools, and also one entirely new application.
If you look at the source release, you should find a unix subdirectory. You need cmake to build it; see the file README in the source distribution. This should build you:
-Unix ports of PuTTY, Plink, PSCP, and PSFTP, which work pretty much the same as their Windows counterparts;
-Command-line versions of PuTTYgen and Pageant, whose user interface is quite different to the Windows GUI versions;
-pterm - an xterm-type program which supports the same terminal emulation as PuTTY.
"
You should be able to call the Plink binary on the cRIO itself using the System Exec.vi. The commands you are currently running from Putty should be pretty similar when executing them using PLink.
If you don't want to deal with compiling your own PLink, it looks like there are other options like OpenSSH. It looks to be available on some of NI's feeds as an .ipk.
http://download.ni.com/#ni-linux-rt/feeds/2018.5/x64/core2-64/
Here is the direct link since the NI website devs have made the feeds unnavigable. If your cRIO has an internet connection, it will be easy to install. If not, it will be a nightmare if it has many dependencies.
http://download.ni.com/ni-linux-rt/feeds/2018.5/x64/core2-64/openssh_7.4p1-r0.5.83_core2-64.ipk