Last active
May 14, 2025 14:25
-
-
Save jyalim/60dd1e5edf5158db87c9 to your computer and use it in GitHub Desktop.
sshd (ssh server) on Ubuntu 15.04 or later (systemctl)
This file contains hidden or 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
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