Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Configure SSHD

See also Configure SSH for Key-based Authentication.

Sources

Installation

sudo apt-get install openssh-server -y

On my laptop I followed with:

sudo systemctl stop ssh
sudo systemctl disable ssh
sudo systemctl start ssh

Configuration

My changes to /etc/ssh/sshd_config:

AddressFamily inet
LogLevel VERBOSE

Add Authorized User

Enable password authentication in /etc/ssh/sshd_config:

PasswordAuthentication yes

Restart sshd with sudo systemctl restart ssh.

On a remote computer

ssh-copy-id -i ~/.ssh/id_rsa.pub alex@192.168.100.177

This should result in:

Disable password authentication in /etc/ssh/sshd_config:

PasswordAuthentication no

Restart sshd with sudo systemctl restart ssh.