Skip to content

Instantly share code, notes, and snippets.

@jyalim
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jyalim/60dd1e5edf5158db87c9 to your computer and use it in GitHub Desktop.
Save jyalim/60dd1e5edf5158db87c9 to your computer and use it in GitHub Desktop.
sshd (ssh server) on Ubuntu 15.04 or later (systemctl)
sudo apt-get update && sudo apt-get install -y openssh-server
## ---
# Change daemon settings such as default port, X11 forwarding (ensure is on), and root login:
# | OPTION | default | recommended
# -------------------------------------------------------------
# Port 22 Something > 2000
# PermitRootLogin without-password no
# X11Forwarding yes yes
sudo vim /etc/ssh/sshd.config
# -----
sudo systemctl restart ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment