linux - ssh免密登录失败,报sorry,command...is not allowed错误?
问题描述
机器建立互信时候执行ssh命令
ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no $hostname
返回错误信息如下:
Sorry, command '/usr/bin/baas pass_bils_identity --baas_cred=XXXXXX= --client_ip_address=10.62.141.17 --total_rpc_timeout_in_ms=500 --rpc_timeout_in_ms=500 --total_rpc_retry_time=1 > /dev/null 2>&1 ; /usr/bin/baas disconnect_father_son_relation --total_rpc_timeout_in_ms=500 --rpc_timeout_in_ms=500 --total_rpc_retry_time=1 > /dev/null 2>&1;/usr/bin/baas bind_to_session --global_session --global_session_id=44025462-55b9-4ed1-b41e-76ba59b01611 --global_index=2 --total_rpc_timeout_in_ms=500 --rpc_timeout_in_ms=500 --total_rpc_retry_time=1 > /dev/null 2>&1;$SHELL -l' is not allowed
请高手指导。
问题已解决。
这篇关于linux - ssh免密登录失败,报sorry,command...is not allowed错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!