-
Notifications
You must be signed in to change notification settings - Fork 655
Growing sshd_config after restarting multiple times prevents SSH access #2581
Comments
We compared the 2 most recent overlays for |
A temporal fix is to detach the volume from the EC2 instance, attach it as secondary volume to another EC2 instance, modify the |
It should not be caused by that PR, it was introduced in 1.3.0, but you are using 1.1.0. It seems that you are not using the default console. It should be a bug, we will fix it. |
We are in fact using the Ubuntu console. |
I have this same problem on ubuntu console... could you @Aisuko please just tell us how to fix our existing rancheros or should we install a new one? |
We will fix this issue in v1.5.1 @kordeviant |
Fixed this issue in RancherOS v1.5.1-rc1 |
RancherOS Version: (ros os version)
seen on:
rancherOS Base-1.1.0.93-dab52c1 (ami-0655e569)
rancherOS Base-1.1.0.94-49689c2 (ami-c50a86aa)
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
AWS
We are starting and stopping our EC2 development instances regularly and very often. It seems that at every startup the following 4 lines will be appended to
/etc/ssh/sshd_config
. This remained undiscovered more than a year until we suddenly could not SSH into our machines without any modification. After a long investigation we found out that the sshd deamon does not start anymore because thesshd_config
file contains the following 4 lines about 280 times:It seems that this patch introduced this behaviour.
So we see 2 problems here:
sshd_config
? They should be replaced or appending should be skipped./var/log/syslog
. We only see this line unless the sshd failed.We also have no threshold for the number of configuration repetitions when sshd fails. One of our instances failed at about 260 repetitions of these 4 lines.
The text was updated successfully, but these errors were encountered: