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

已提問 5 年前檢視次數 214 次
2 個答案
0

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

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南