pssh使用带有密码的私钥登陆在使用-A参数之后报“tderr: Enter passphrase for key ‘****”
解决方法:
修改
vim /lib/python2.7/site-packages/psshlib/askpass_client.py
OS X为:
vim /usr/local/Cellar/pssh/2.3.1/lib/python2.7/site-packages/psshlib/askpass_client.py
将第67行的:
if not prompt.strip().lower().endswith('password:'):
改为
if not ( prompt.strip().lower().endswith('password:') or 'enter passphrase for key' in prompt.strip().lower()):
若上述没有启用会提示如下错误或者无法正常运行的提示信息 :
the installer reports that the server does not contain the required hardware support或者The message will indicate that the virtual machine could not be started because the hypervisor is not running.或者cannot start the virtual machine