This is my code:
import pexpect
import spawn
host = 'xx.xx.xx.xx'
userName = 'akshay'
password = 'xxxxxxxxxxxxxx'
**child = spawn('ssh %s@%s' %(userName, host))**
child.setwinsize(1000,200)
child.expect(['password'], timeout=5)
Here I'm trying to SSH into a box using pexpect
and spawn
but my Pycharm always returns
TypeError: 'module' object is not callable in the bold line