Skip to content

Instantly share code, notes, and snippets.

@shalk
Created December 9, 2013 03:42
Show Gist options
  • Save shalk/7867096 to your computer and use it in GitHub Desktop.
Save shalk/7867096 to your computer and use it in GitHub Desktop.
perl -p -i -e "s/^.*PasswordAuthentication.*$/PasswordAuthentication yes/" /etc/ssh/sshd_config
perl -p -i -e "s/^.*PermitRootLogin.*$/PermitRootLogin yes/" /etc/ssh/sshd_config
service sshd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment