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 2026-07-01 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

Over 10 connections are established when you use SSH to connect to a notebook instance. As a result, your connection is rejected and the following error message is reported:

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, your connection is 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.