Skip to content

Instantly share code, notes, and snippets.

@CloudLinuxDeveloper
Last active August 12, 2021 23:05
Show Gist options
  • Save CloudLinuxDeveloper/2c4ea762e9ab4ce2afe867703cb55ef1 to your computer and use it in GitHub Desktop.
Save CloudLinuxDeveloper/2c4ea762e9ab4ce2afe867703cb55ef1 to your computer and use it in GitHub Desktop.
Generating SSH Key Ubuntu
#!/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