Skip to content

Instantly share code, notes, and snippets.

@afahitech
Created February 20, 2021 16:47
Show Gist options
  • Save afahitech/fbb18d4c99c872bd665d9edb6ca90d5d to your computer and use it in GitHub Desktop.
Save afahitech/fbb18d4c99c872bd665d9edb6ca90d5d to your computer and use it in GitHub Desktop.
Enable SSH
#!/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