Skip to content

Generate SSH Keys

Create Keys

ssh-keygen -t ed25519
ssh-keygen -t ed25519 -f ~/.ssh/example -C example@breadnet.co.uk

Copy them to server

then run this but put the server name where it asks for remote host. Don't worry about using a username as they are usually the one you're logged in as.

cat ~/.ssh/id_rsa.pub | ssh username@remote_host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Want to make this site better? Open a PR or help fund hosting costs