禁止ssh登陆指定账号

在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"

禁止ssh登陆指定账号
https://www.hechunyu.com/archives/jin-zhi-sshdeng-lu-zhi-ding-zhang-hao
作者
chunyu
发布于
2023年07月31日
许可协议