Skip to content

Instantly share code, notes, and snippets.

@behrendtio
Created September 14, 2011 17:00
Show Gist options
  • Save behrendtio/1217098 to your computer and use it in GitHub Desktop.
Save behrendtio/1217098 to your computer and use it in GitHub Desktop.
Amazon EC2 Root login
sudo cp -rv /home/ec2-user/.ssh /root/
# /etc/ssh/sshd_config
# Change
PermitRootLogin forced-commands-only
# To
PermitRootLogin yes
sudo service sshd reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment