Table of Contents

SSH

ssh [USER@]HOST[:PORT]

Create public key

ssh-keygen
ssh-keygen -t rsa -b 4096
ssh-keygen -t ed25519

Config file

.ssh/config
Host HOSTNAME
  Hostname HOSTNAME
  User root
  Port 22
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/id_rsa