Skip to content

chenh19/git_ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git SSH

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

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*

About

Script tool to set up SSH for GitHub

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages