侧边栏壁纸
  • 累计撰写 2,058 篇文章
  • 累计创建 73 个标签
  • 累计收到 20 条评论

目 录CONTENT

文章目录

服务器连接失败报错 ssh: could not start shell

大猿本猿
2023-08-22 / 96 阅读 / 134 字

错误描述

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

服务器连接失败报错 ssh: could not start shell