Skip to content

Instantly share code, notes, and snippets.

@skobba
Last active March 1, 2020 07:20
Show Gist options
  • Select an option

  • Save skobba/c10398326a64dddfb50be71045e66f70 to your computer and use it in GitHub Desktop.

Select an option

Save skobba/c10398326a64dddfb50be71045e66f70 to your computer and use it in GitHub Desktop.
allow root ssh
# ubuntu
sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
service ssh restart
system ssh restart
# debian
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
/etc/init.d/ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment