Skip to content

Instantly share code, notes, and snippets.

@sooorajjj

sooorajjj/add_ssh-key.sh

Last active Mar 4, 2020
Embed
What would you like to do?
add gerrit ssh-key
$ git config --global user.email "blah@e.email"
$ git config --global user.name "blah"
$ ssh-keygen -t rsa -C "blah@e.email"
$ eval `ssh-agent`
$ ssh-add ~/.ssh/id_rsa_e_blah
#Identity added: /home/${USER}/.ssh/id_rsa_e_blah (blah@e.email)
$ ssh -p 29418 blah@gerrit.my.software
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment