pssh使用带有密码的私钥登陆在使用-A参数之后报错

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()):

This entry was posted in AutomaticOPS, Linux, SSH/PSSH and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *