pexpect alternate in python We generally use pexpect in python to ssh to remote hosts and execute our commands. But pexpect module is not available in all system and there are restriction to do the installations. So using select module we created a script to connect remotely and execute our tasks.
This script can be used as :
Usage: python remoteconnect.py user remotehost password command-to-run-on-ssh