Last active
March 8, 2017 23:53
-
-
Save lschatzkin/6285618 to your computer and use it in GitHub Desktop.
generate ssh key via command line
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
ps -e | grep [s]sh-agent // see if agent is running | |
ssh-agent // see if agent is running | |
ssh-add -l // list keys | |
ssh-keygen -t dsa -f ~/.ssh/id_dsa -C "[email protected]" // add key id_dsa ***MAKE A NOTE OF THE PASSCODE!*** | |
ssh-add ~/.ssh/id_dsa // add keys to agent | |
ssh-add ~/.ssh/id_dsa.pub | |
ssh -T [email protected] -v // check to see if connection to Bitbucket is working | |
// If ssh-add returns "Could not open a connection to your authentication agent." error. | |
exec ssh-agent bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment