# Enable SSH Server ## General * install ssh server ``` sudo -l sudo apt-get update sudo apt-get install openssh-server --no-install-recommends systemctl status sshd systemctl list-unit-files | grep enabled | grep ssh ``` * set default port to ``````, disable PermitRootLogin using ``` sudo vi /etc/ssh/sshd_config sudo systemctl restart sshd ```` * validate port configuration ``` ss -tupln|grep * update firewall with like [this](firewall.md) ## Public Key Authentication Follow [this](./ssh-pub-key-auth.md) guide to configure public key authentication.