DEV Community

loading...

Discussion on: How to Manage Multiple SSH Key Pairs

Collapse
brandonwallace profile image
brandon_wallace

Nice article. I recommend adding a comment and a file name to ssh-keygen.

-C "<comment>"
-f /path/to/key
Enter fullscreen mode Exit fullscreen mode

Examples:

$ ssh-keygen -t rsa -b 4096 -C "brandon@home-example.com" -f ~/.ssh/id_rsa_home
$ ssh-keygen -t ed25519 -C "brandon@work-example.com" -f ~/.ssh/id_ed25519_work
Enter fullscreen mode Exit fullscreen mode
Forem Open with the Forem app