AMI not copying sshd file

0

I have user and password auth configured for my instances but every one I launch i have to add this to the bootstrap

sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sudo service sshd restart

Is there a reason creating an image from an existing instance isn't copying that file?

Edited by: witchkinkofangmar on Oct 11, 2019 10:49 AM

gefragt vor 5 Jahren214 Aufrufe
2 Antworten
0

Configuration is in the /etc/cloud/cloud.cfg
file

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen