How to connect to a proxy server from LISA using the step Execute External Command? What is the command to be used? I have two hostnames and ports to be connected
I need the username and password also to be provided as input
Can you share more information on what you're attempting to do by connecting to remote server? If you're trying to copy files from or over to a remote server then there may be a better way to do it.
But to your question - the challenge I'm seeing is that there's a two step process when connecting to a remote server with credentials:
1. The first step is to connect to the actual server (using the following command: putty.exe -ssh email@example.com)
2. The second step is to enter the password when prompted: <password>
I'm not sure if there's a command that allows you to combine both steps into one. And it gets tricky, and possibly technically not doable, to keep or pass the ssh session between two steps. However, I did some googling on other tools and there's a tool called sshpass that allows to pass in the password using the -p flag.
I need to use SOCKS 5 proxy type with the highlighted fields and the password. Could you please help in resolving this issue?
The following regarding the plink will help you for executing the command.
The link shared in the above comment is to connect direct to the server. I need to connect to another server via proxy server. I have two IP and two ports to be connected with authentication. Could you please help in getting linux command to provide these input to connect to the server via PuTTY?
Sorry for the delayed reply.I am not aware of any command for achieving your requirement.But did you try another approach?
Yes. I tried. Still its not working. I am still in search of the linux command to connect to proxy server.
Not sure if this will help but I found this link:
Linux Proxy Server Settings - Set Proxy For Command Line - ShellHacks
Can anyone explain how to connect CALisa with putty.
There is a command line connection utility that comes with puTTY, it is called plink. I tried it and it works:
C:\Program Files\PuTTY>plink <youruserid>@<yourtargethost> -pw <yourpassword>
So try this with an external command step from a DevTest test case.
Hope this helps.
Retrieving data ...