Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.59 KB

File metadata and controls

36 lines (28 loc) · 1.59 KB

Git SSH

A script tool to quickly set up SSH for GitHub on Unix/Linux
Current version: v3.0.0

How to use:

  • Generate a new SSH key: connect to internet and execute the below command in terminal
bash -c "$(curl -fsSL https://raw.githubusercontent.com/chenh19/git_ssh/main/gitssh.sh)"

If you are a Mac user, you may need to install git package first.
For more information: Generating a new SSH key and adding it to the ssh-agent.

  • Add the SSH key to your GitHub account:

    • Click your profile photo and go to "Settings":

    • Go to "SSH and GPG keys" and click "New SSH key":

    • Enter the "Title", paste in the "Key", and click "Add SSH key":

    For more information: Adding a new SSH key to your GitHub account.

  • Remove the SSH key: execute the below command in terminal

rm -rf ~/.ssh/id_ed25519*