Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ SSH Faults/ Over 10 Connections Are Established When a User Uses SSH to Connect to a Notebook Instance. Error "ssh_exchange_identification: Connection closed by remote host" Is Reported
Updated on 2025-11-18 GMT+08:00

Over 10 Connections Are Established When a User Uses SSH to Connect to a Notebook Instance. Error "ssh_exchange_identification: Connection closed by remote host" Is Reported

Symptom

If you use SSH to connect to a notebook instance and have more than 10 connections at the same time, your connection will be rejected.

ssh_exchange_identification: Connection closed by remote host
Figure 1 Error message example

Possible Causes

There are more than 10 concurrent connections. As a result, the connections are rejected. Run the following command to check the number of connections:

ps -ef|grep ma-user@pts |grep -v grep | wc -l
Figure 2 Querying the number of connections

Solution

1. Disconnect unused SSH connections.

2. Restart the notebook instance. For details, see Starting, Stopping, or Deleting a Notebook Instance.