Closed rajesh-h closed 7 years ago
@just10minutes try to print out the interact.current_output_clean
between you call to figure out what's going on
also I would recommand using regex for the prompts:
prompt=".*Password:.*"
hopes that's helps
@fruch Thanks a lot for your response.
I have managed it by removing couple of expect lines instead sending direct send command. it worked for me.
I will close this from my end.
Currently this is what is do in Putty on windows on daily basis.
Click on my host then it prompts me like this, yes it has two level authentication
I am not sure is this the right way to write my code. I am sure it gets connected to hostname on level 1, but second level username is not passed. So not sure what I am doing wrong.
Thank you for this wonderful package