Created
February 24, 2014 10:46
-
-
Save musaid/9185461 to your computer and use it in GitHub Desktop.
Commands to bypass PEM usage in newly created AWS EC2 instances.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Turn on password authentication | |
sudo sed -i ‘s/^PasswordAuthentication.*/PasswordAuthentication yes/’ /etc/ssh/sshd_config | |
# Reload SSH/SSHd configuration | |
sudo service ssh reload | |
# Set a password for the ubuntu (for ubuntu instances, otherwise use the default username for that instance type) | |
sudo passwd ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment