- Setup user password:
passwd
- mkdir -p ${HOME}/.ssh
- Add public key to ${HOME}/.ssh/authorized_keys
- Setup SSHD:
sudo tee /etc/ssh/sshd_config << EOF
Port 22
PermitRootLogin no
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
PermitEmptyPasswords no
UsePAM yes
PrintMotd no
Subsystem sftp /usr/lib/ssh/sftp-server
EOF
- Enable SSHD:
sudo systemctl enable --now sshd.service
- Create Wireguard folder:
sudo mkdir -p /etc/wireguard
- Copy Wireguard config to
/etc/wireguard/wg0.conf
- Import wireguard connection to networkmanager:
sudo nmcli con import type wireguard file /etc/wireguard/wg0.conf
Features:
- SSHD
- WireGuard
- Syncthing