Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 990 Bytes

SERVER_ADMIN.md

File metadata and controls

44 lines (26 loc) · 990 Bytes

Server Admin

This guide assumes you're on ubuntu.

Update and upgrade the system

sudo apt-get update && \ sudo apt-get upgrade -y &&
sudo apt-get dist-upgrade

Dynamic DNS w/ ddclient

https://www.techandme.se/setup-multiple-accounts-with-ddclient-and-cloudflare/

Disable SSH w/ password

This guide assumes you've setup already SSH keys to log w/o password on such hosts. Check the linked guide below if you haven't yet.

Update SSH server configuration with:

sudo vi /etc/ssh/sshd_config

Set following values

ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
PermitRootLogin no

Restart ssh server

sudo service ssh reload

source

How to test

ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no -l

source