Last active
May 27, 2025 02:18
-
-
Save skylerspaeth/560625c39fc618f02dec1c10731555cf to your computer and use it in GitHub Desktop.
Create master SSH key with username in comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ssh-keygen -t ed25519 -f "$HOME/.ssh/master" -C "$USER-master" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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