错误描述
CentOS 服务器登陆连接失败报错 ssh: could not start shell
解决方法
经过排查发现使用堡垒机连接报该错,通过客户端工具连接正常,所以问题应该并非如描述一般。
同时服务器还有别的错,各种操作都会报:No child processes
调整linux 句柄限制之后,ssh: could not start shell 的错也不报了,可以正常连接。
调整如下:
/etc/security/limits.conf
* soft nofile 102400
* hard nofile 104800