Created
July 6, 2018 19:13
-
-
Save fabiogomezdiaz/33f8d7fd7386227eae97705e0bdbb35d to your computer and use it in GitHub Desktop.
Ubuntu: Enable ssh root login
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
#!/bin/bash | |
# Become root | |
sudo su | |
# Create root password | |
passwd | |
# Install java and ssh | |
apt-get update | |
apt-get install -y openssh-server | |
# Enable root ssh | |
sed -i 's/prohibit-password/yes/' /etc/ssh/sshd_config | |
systemctl restart ssh | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment