Hi I am using NXclient (UNix/KDE) . I am running a python script where it is trying to create ssh session to another server and perform some automation task. Basically I am storing a password in variable and when SSH session asks for password I simply send the stored password. it work very well using putty.
PROBLEM: when I use above nxclient. each time a SSH session needs a password 'A GUI prompt appears asking for password which freezes the terminal and fails my script . I do not want to enter password in gui because the password is already stored in a variable which will be used .
I have attached following screen shot. How can i disable this please help. click for screen shot
[EDIT]
section of code which does thatif password_prompt:
child.sendline(getpass.getpass('Enter your windows password: '))
else :
child.sendline(ssh_password)
i = child.expect([os.path.basename(keyfile), pexpect.TIMEOUT])