shell检查能否免秘钥
来源:原创
时间:2020-12-12
作者:脚本小站
分类:SHELL
免秘执行:如果需要密码则输出提示消息,而不是让你输入密码。
]$ ssh -o PreferredAuthentications=publickey -o StrictHostKeyChecking=no 10.32.113.44 'date' Warning: Permanently added '[10.32.113.44]:58422' (RSA) to the list of known hosts. Permission denied (publickey,password).