Category Archives: AutomaticOPS

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

Posted in AutomaticOPS, Linux, SSH/PSSH | Tagged , | Leave a comment

ESXi使用ssh-key登陆

通过 ssh 登录到 ESXi 系统后, 可以通过 passwd root 来修改密码参考 Changing ESXi Root Password , 里面还说明了如何开启 ESXi ssh 登录.For ESXi 5.0, the location of authorized_keys is: /etc/ssh/keys-<username>/authorized_keys

Posted in AutomaticOPS, OS, SSH/PSSH, vSphere | Tagged , | Leave a comment