Skip to content

Instantly share code, notes, and snippets.

@letsautomatenet
Last active October 8, 2023 15:40
Show Gist options
  • Save letsautomatenet/b929ddfdf3e15aa4723d6b804fc36907 to your computer and use it in GitHub Desktop.
Save letsautomatenet/b929ddfdf3e15aa4723d6b804fc36907 to your computer and use it in GitHub Desktop.
Install SSH
# Always good to update things first
sudo apt-get update
sudo apt-get upgrade
# Install SSH
sudo apt-get install openssh-server
# Enable Service
sudo systemctl enable ssh
# Allow through Firewall
sudo ufw allow ssh
# Start Service
sudo systemctl start ssh
# Command to connect via SSH
ssh username@ipaddress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment