setup/doc/ssh-server.md

28 lines
619 B
Markdown
Raw Permalink Normal View History

2022-02-12 17:47:04 +01:00
# Enable SSH Server
## General
2022-02-12 17:47:04 +01:00
* 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
```
2022-03-31 21:13:06 +02:00
* set default port to ```<sshd port number>```, disable PermitRootLogin using
2022-02-12 17:47:04 +01:00
```
sudo vi /etc/ssh/sshd_config
sudo systemctl restart sshd
````
2022-04-10 18:02:25 +02:00
* validate port configuration
2022-03-31 21:13:06 +02:00
```
ss -tupln|grep <sshd port number>
2022-02-12 17:47:04 +01:00
2022-04-11 13:13:42 +02:00
* update firewall with <sshd port number> like [this](firewall.md)
## Public Key Authentication
Follow [this](./ssh-pub-key-auth.md) guide to configure public key authentication.