Last active
August 12, 2021 23:05
-
-
Save CloudLinuxDeveloper/2c4ea762e9ab4ce2afe867703cb55ef1 to your computer and use it in GitHub Desktop.
Generating SSH Key Ubuntu
This file contains 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 | |
sudo -i | |
ssh-keygen -t rsa -b 4096 -C "your_email@example.com" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa | |
cat /root/.ssh/id_rsa.pub | |
# Copy key and add https://github.com/settings/keys | |
# for test | |
ssh -T git@github.com | |
#youtube: https://youtu.be/HE_gU2YBeu4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment