Last active
March 1, 2020 07:20
-
-
Save skobba/c10398326a64dddfb50be71045e66f70 to your computer and use it in GitHub Desktop.
allow root ssh
This file contains hidden or 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
| # 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