I am trying to connect to a Putty server through SSH and executing the commands. I am using SSHConnector Activities package by Sorin Calin, in this I have to pass a command SSH run shell command or SSH run command activity
- The issue I am facing when I use SSH Run command activity is, even the I am able to login into Putty Server(with RSA) but Bot can not able to execute the command as the error says: Failed to open a connection with channel after 10 retries. Please help me resolve this
- The issue with SSH Run shell command is it has some properties like : Expected Prompt where I should give the regex pattern matching with the last line of the output. Usually, we get a SITE ID in the last line when we manually login into Putty - LAL00360 and run a command
but when using from SSH , we are getting the response as : e[1mLAL00360e[0m> where the Extra characters are the ANSI Esc codes, bold characters and color codes. Now I have to give a regex pattern which should match with the above mentioned String. I am using : [\x1b[\w>]+ to match the pattern, this is matching the value in regex engine but when i pass the same regex in the activity, it is not matching.
So, how to resolve it! Either I need to make sure that SSH run command works or I need to give regex pattern to match this. Please help me resolve this.
Regards,
Vi
@ Cristian Bidea
Can you please help