ssh resets on connections to external interface.
We notices on Monday that ssh connections to our bastion hosts would fail about 80% of the time. If you did connect, your connection would be stable.
Running tcptrack on the bastion host, I seet the failed connections are showing as "reset".
I've tried patching/upgrading to the latest Ubuntu and SSH versions and the problem has persisted.
I have also verified that we are not even getting close to the max number of ports we can have open on the host.
I have confirmed this by trying to connect to the bastion hosts eternal interface from an EC2 instance in our AWS network and my home system with a similar failure rate. Connecting to the bastions internal interface from another EC2 instance does not have this problem.
Bastion OS: Ubuntu18.04 LTS 5.4.0-1066-aws #69~18.04.1-Ubuntu SSH version: OpenSSH7.6p1-4ubuntu0.6
Anyone know what changed over the weekend and how to fix this problem?
Thanks to whom ever fixed the issue. After two days straight of connection problems, this morning the problem magically cleared up.
SSH port mapping connection keeps being resetasked 3 months ago
What is the difference between EC2 Instance Connect and Session Manager SSH connections?Accepted Answerasked 3 years ago
Contrast between file creation via EC2 Instance Connect & SSH Clientasked 5 months ago
Outgoing connection timeouts - eu-west-1 instancesasked a year ago
ssh resets on connections to external interface.Accepted Answerasked 3 months ago
Bastion Hosts and Transit Gateway in Multi-VPC environmentAccepted Answerasked 3 years ago
How System Manager will work without PORT 80 to Openasked 3 months ago
What processes managed RedShift connections that would explain initializing connections being stuck for 2m when connection count is < 250.asked 12 days ago
Connection Timeout Error while connection EC2 with Puttyasked 2 months ago
Placing a Bastion in a Private Isolated Subnetasked 3 months ago