---
title: SSH连接提示ssh_exchange_identification: Connection closed by remote host
description: "SSH连接客户端过多，部分用户可以连接，部分用户无法连接，终端输出错误提示：ssh_exchange_identification: Connection closed by remote host。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Appendices/faq/faq_0010.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Appendices/faq/faq_0010.html
indexId: 163e6e1c998426423006fd229573a10fb1d86bb6a2681e8e76e95a880b7ec4fc74
---
# SSH连接提示ssh_exchange_identification: Connection closed by remote host

#### 现象描述

SSH连接客户端过多，部分用户可以连接，部分用户无法连接，终端输出错误提示：ssh_exchange_identification: Connection closed by remote host。


#### 可能原因

SSH的连接数超出了服务器设置的上限。


#### 解决方案

修改开发者套件用户连接数量上限。步骤如下：

1. 登录开发者套件。
2. 进入“/etc/ssh/”目录。
3. 修改配置文件sshd_config中的用户连接相关参数。如下字段：

```
MaxSessions # 最大允许连接数，默认值10
MaxStartups # 最大允许保持多少个未认证连接（未输入登录密码），默认值10
```


  修改示例：

```
MaxSessions 1000
MaxStartups 1000
```


4. 配置完成后保存退出。
5. 重启SSH服务。命令如下：

```
sshd service sshd restart
```
