You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

SSH Concurrent Session Fails - Error “ssh_exchange_identification: read: Connection reset by peer"

edited Mar 29, 2023 6:37AM in Linux

Applies to:

Oracle Cloud Infrastructure - Version N/A and later

Linux x86-64

Symptoms:

Unable to do concurrent SSH sessions from on-premises to OCI Linux instance or between OCI instances from different VCN subnets, over a certain maximum number of connections:

$ for ((i=1;i<=100;i++)); do echo ${i};  ssh -i /home/opc/.ssh/id_rsa opc@x.x.x.x uptime > /dev/null; done
 1
 2
 3
 4
 5
 6
 7
 8
 9
 …
 19
 20
ssh_exchange_identification: read: Connection reset by peer21
ssh_exchange_identification: read: Connection reset by peer22
ssh_exchange_identification: read: Connection reset by peer23
ssh_exchange_identification: read: Connection reset by peer24
ssh_exchange_identification: read: Connection reset by peer25
ssh_exchange_identification: read: Connection reset by peer26
ssh_exchange_identification: read: Connection reset by peer27

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!