-
-
Save TyrfingMjolnir/5c4e4549d0e76fc0919c24d1b450a2ea to your computer and use it in GitHub Desktop.
Generate SSH keys
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/ | |
| ls -al ~/.ssh # Lists existing files in your .ssh directory | |
| ssh-keygen -t rsa -b 4096 -C "your_email@domain.com" # Creates new ssh key, using the provided email as label | |
| eval "$(ssh-agent -s)" # Ensure ssh-agent is enabled | |
| ssh-add ~/.ssh/id_rsa # Add ssh key to the ssh-agent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment