Skip to content

Instantly share code, notes, and snippets.

@skylerspaeth
Last active May 27, 2025 02:18
Show Gist options
  • Save skylerspaeth/560625c39fc618f02dec1c10731555cf to your computer and use it in GitHub Desktop.
Save skylerspaeth/560625c39fc618f02dec1c10731555cf to your computer and use it in GitHub Desktop.
Create master SSH key with username in comment
#!/bin/bash
ssh-keygen -t ed25519 -f "$HOME/.ssh/master" -C "$USER-master"
# SSH config file (~/.ssh/config)
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment