SSH

use id_ed25519 over rsa (toolshelf.tech)

ssh public key auth

workflow

add your key to a single server

ssh basics

keys

generating using openSSH

upload key

restore keys (on a new pc)

files

server side

config file

parts of /etc/ssh/sshd_config:

Port = 22   # self explaining
PermitRootLogin = no   # should be 'no'
PasswordAuthentication no   # disallow Username-Password login
ClientAliveInterval 300   # inactivity time period after which the server send an alive message
ClientAliveCountMax 3   # number of attempts the server will make
auth keys authorized_keys

https://www.ssh.com/academy/ssh/authorized-keys-file https://www.ssh.com/academy/ssh/authorized-keys-openssh

client side

config (client side)

ssh agent

eval "$(ssh-agent -a "$HOME/.ssh/agent.sock")"
ssh-add ~/.ssh/id_ed25519
ssh-add -l

Created 2022-10-29 22:29:10 UTC by Daniel Raab
Updated 2026-05-12 07:54:01 UTC by Daniel Raab