Hcy

禁止ssh登陆指定账号

Jul 31, 2023
153
0

在authorized_keys中添加配置

no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"opc\" rather than the user \"root\".';echo;sleep 10;exit 142"