Created
February 20, 2021 16:47
-
-
Save afahitech/fbb18d4c99c872bd665d9edb6ca90d5d to your computer and use it in GitHub Desktop.
Enable SSH
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/sh | |
sudo apt-get install openssh-server | |
sudo nano /etc/ssh/sshd_config | |
# Find (ctrl+w) this line and set | |
PermitRootLogin yes | |
PubkeyAuthentication yes | |
PasswordAuthentication yes | |
# Save & exit ctrl+s and ctrl+x then hit enter | |
sudo service ssh restart | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment