The pexpect.pxssh module has support for using public key authentication. [1] This commit adds support for leveraging that and establishing a ssh connection with a public key instead of a password. [1] http://pexpect.readthedocs.io/en/stable/api/pxssh.html#pexpect.pxssh.pxssh.login