How to ssh/Integrate cygwin for the remote execution of CLI commands on windows with ReadyAPI ?
Have to ssh the CLI commands on a remote windows server. Unlike linux, could not execute cli commands on remote windows server using readyapi, seems there are pre-requisite should be done for executing the commands remotely. Currently I am getting the following error when tried ssh from readyapi to the remote windows server. Kindly help me out to execute cli commands on readyapi for the windows machine
HTTP/1.0 400 BAD REQUEST
Content-Type: text/html; charset=utf-8
Server: Werkzeug/1.0.1 Python/3.6.8
Date: Mon, 04 Oct 2021 07:33:38 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>
<p>The browser (or proxy) sent a request that this server could not understand.</p>
Re: How to ssh/Integrate cygwin for the remote execution of CLI commands on windows with ReadyAPI ?
Sorry I don't have specific example, but I have used a library to perform the tasks you describe that you could look into to see if it meets your needs...
It is Jsch by JCraft
Download the .jar file and place in your installation .lib folder.
add "import com.jcraft.jsch.*;" import line to you groovy script test step to use features in examples.
Their website has some java examples you can drop right into groovy script test steps.
I used to execute commands on remote computers with this library successfully and relatively painless.