Is it possible to login(sending username and password) to a SSH session from Command Line? I do not want to define my user and password before opening my session. Neither in test topology file(hardcoded values) nor on the SSH open session step(in step properties->SSH Session Properties->SSH etc). I want to send my username and password in command line as telnet.
For example if I use putty to manage my ssh sessions, For login, it opens a command line and requests for my username and password in the command line, but in itest unfortunately it has to be done either via topology file(hardcoded variables) or by defining user and password before open session step and setting them in open step properties(->SSH Session Properties->SSH etc). but it is not possible to enter them in a command line.
Is there a workaround for it?
Thanks a lot in advance.
Answer by bhavani.geepalem · Nov 24, 2016 at 09:25 AM
Currently in iTest, we do not have an option to login SSH session through Command Line.
The only way is to use SSH session and we need to specify the Username & Password before starting the session.
Answer by Ameya Barve · Nov 25, 2016 at 04:24 PM
@emre I assume you are doing this because you don't know the credentials before hand - if that's the case, you can use variables. For example in the open for the ssh, you can override the username and password using $user and $password, and then before the open step you can set these variables to be whatever you want them to be.
If that's not the use case, can you describe more the use case where you wan to send the credential from command line?
Copyright 2008- Spirent Communications, all rights reserved. Terms and Conditions.