Driver for SSH communication

Mickael G.
Beaupréau-en-Mauges,

Dec 14, 2022
1 Post

0  |  0  

Re: Driver for SSH communication

Hi everyone,

We are trying to communicate with a DUT via SSH (with ATEasy10): opening a session, sending commands, reading answers.

We usually use ExtraPutty tool, provided with a DLL, but this tool seems no longer maintained and has some limitations.

We are looking for a new driver.

We had a look at TeraTerm and Windows integrated tool "OpenSSH":
  - TeraTerm seems to be designed only for HMI mode. Even if some command lines exists (TTSSH for example),  we can only start session, but impossible to interract with DUT afterward.
  - "OpenSSH": we tried to use it with StdIoProcess driver, but impossible to launch it (looks like incompatibility between 32bits and 64bits install)

Does anyone already experienced SSH drivers ?
(I didn't find anything in ATEasy provided examples ;) )

Any help or suggestion would be very appreciated.

Have a nice day,
Mickaël

Solution Available
David N.
Salt Lake CIty, UT

Dec 14, 2022
12 Posts

1  |  0  

Re: Driver for SSH communication

Hello,
I had a similar need in my test application which requires SSH. I recommend installing just putty from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

It comes with a console application called "plink.exe".

Below is the code that worked for me.


StdIOProcess Execute("plink.exe", "root@192.168.0.10", "",False,True) !Executes plink then passes the arguments to login as user name root
"Username@IP address of the UUT"

Delay(100)
StdIOProcess Read(s)

StdIOProcess Write("123") !UUT Password
Delay(2000)
StdIOProcess Read(s)
Delay(250)

After that you should be logged into the UUT and ready for the next command. Since its in Async mode, I put in delays to allow things to execute in between writes and reads.

StdIOProcess Write("") ! next command
StdIOProcess Read(s) !Should read the results from above command
Delay(250)

Solution Available
DrATEasy (Ron Y.)
Mission Viejo, CA

Dec 14, 2022
367 Posts

1  |  0  

Re: Driver for SSH communication

You can also use SSH.Net, See https://stackoverflow.com/questions/11169396/c-sharp-send-a-simple-ssh-command

Ronnie



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]