openssh-server prompt halts cloud-init

0

Hello, I've been using this debian image for a couple months without issue: ami-071175b60c818694f. Today when I run my CFN template to start my cluster, stack creation completes normally and Im able to ssh into my public instance. But I find none of my user-data script has executed. catting /var/log/cloud-init-output.log shows a prompt from openssh-server: -------------------------- Configuring openssh-server: │ A new version (/tmp/tmp.99nOdMR8Nk) of configuration file │ │ /etc/ssh/sshd_config is available, but the version installed currently │ │ has been locally modified. | What do you want to do about modified configuration file sshd_config?

I did not change any ssh config: $ ls -lrt /etc/ssh/sshd_config -rw-r--r-- 1 root root 3245 Jul 11 04:26 /etc/ssh/sshd_config

Another article suggested rebooting, but that does not run my user-data script. Is there a way to tell openssh-server to stop blocking cloud-init?

snowbot
asked 7 months ago142 views
1 Answer
0
Accepted Answer

This happens when performing apt-get upgrade, which can upgrade openssl-server even if not specifically requested. This version of the upgrade command allows the upgrade to continue: DEBIAN_FRONTEND=noninteractive apt-get -yq upgrade

snowbot
answered 6 months ago
profile pictureAWS
EXPERT
reviewed 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions