Created
August 26, 2021 15:55
-
-
Save merlinvn/e88aeab1080f4d2292c73b40b3c40122 to your computer and use it in GitHub Desktop.
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/sh | |
echo Please enter your email address! | |
read -p 'Email: ' email | |
ssh-keygen -t ed25519 -C "$email" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_ed25519 | |
sudo apt-get update | |
sudo apt-get install xclip | |
xclip -selection clipboard < ~/.ssh/id_ed25519.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment