Configure SSH for Passwordless Logins to OpenBSD Servers 0 ▲ Daniel Wayne Armstrong 38 minutes ago · Tech · hide Create SSH keys on a OpenBSD CLIENT that will be used to secure access to remote devices. Disable password logins on a OpenBSD SERVER in favour of using SSH keys for authentication. Create Public and Private Keys Share Public Key Disable Password Logins Create an Alias Keychain Create Public and Private Keys On the CLIENT Create the SSH public/private key pair protected with a passphrase using ssh-keygen(1): ssh-keygen -t ed25519 -C "$(whoami)@$(hostname -s)-$(date +%Y-%m-%d)" Start ssh-agent(1): eval "$(ssh-agent -s)" Add the newly-created SSH private key to the current session using ssh-add(1): ssh-add ~/.ssh/id_ed25519 Any SSH logins launched during the session will now access this key stored in memory. Share Public Key On the CLIENT Upload the public key using ssh-copy-id(1) to the SERVER and append to its authorized_keys file: ssh-copy-id -i ~/.ssh/id_ed25519.pub [remote_ip_address] Example: SERVER has a [remote_ip_address] of 178.123.1.45: ssh-copy-id -i ~/.ssh/id_ed25519.pub… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town