0

I have user and password auth configured for my instances but every one I launch I have to do this at startup:

#!/bin/bash
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?

2

1 Answer 1

0

Question is answered here: https://stackoverflow.com/questions/18344390/how-do-i-get-aws-ec2-to-not-reset-my-sshd-config-file

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .