Honored Contributor.. connection Honored Contributor..
Honored Contributor..
35 views

SSH command for customized Linux OS

Hi Team,

We are developing run book automation to change the password, ewe have recoreded the script using shell-wizard and below is the script.

send

expectEndsWith <

send ZIAG;

expectEndsWith :

sendChar 77

expectEndsWith *

sendChar 85

expectEndsWith *

sendChar 77

expectEndsWith *

sendChar 35

expectEndsWith *

sendChar 49

expectEndsWith *

sendChar 50

expectEndsWith *

sendChar 51

expectEndsWith *

sendChar 52

expectEndsWith *

send

always sendChar 81

on expectEndsWith :

expectEndsWith *

sendChar 119

expectEndsWith *

sendChar 101

expectEndsWith *

sendChar 114

expectEndsWith *

sendChar 33

expectEndsWith *

sendChar 50

expectEndsWith *

sendChar 51

expectEndsWith *

sendChar 52

expectEndsWith *

send

expectEndsWith *

sendChar 119

expectEndsWith *

sendChar 101

expectEndsWith *

sendChar 114

expectEndsWith *

sendChar 33

expectEndsWith *

sendChar 50

expectEndsWith *

sendChar 51

expectEndsWith *

sendChar 52

expectEndsWith *

send

expectEndsWith <

 

What i am assuming the SSH is generating the decimal number for each character of the password. 

The same is running from OO its saying script did not run timed out. 

 

When i run with only two line the script is running fine, it is giving error only when i add expectEndsWith : and the character : in ssh session like old password : can you please help me to resolve the issue.

expectEndsWith <

send ZIAG;

it is giving error only when i add expectEndsWith : and the character : in ssh session like old password : can you please help me to resolve the issue.

Thanks

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.