![]() Notice that you'll need te replace id_rsa in the command with the name of your private key file: $ ssh-add ~/. Start the ssh-agent in the background if it's not already running: $ eval "$(ssh-agent -s)"Īdd you SSH key to the ssh-agent. Press the Enter or Return key to accept the default location.Įnter and re-enter a passphrase when prompted, or leave it empty.Įnsure your SSH key is added to the ssh-agent. If not, you can create a new public and private key pair with the following command: $ ssh-keygen If you see an existing public and private key pair listed that you would like to use on your Bitbucket, GitHub (or similar) account you can copy the contents of the id_*.pub file. By default the filenames of the public keys are one of the following: id_dsa.pub # Lists all the files in your ~/.ssh directoryĬheck the directory listing to see if you already have a public SSH key. List the contents of your ~/.ssh directory: $ ls -al ~/.ssh If you are using Mac or Linux open your Terminal.īefore you generate an SSH key, you can check to see if you have any existing SSH keys. Windows has a native command-line interface, Command Prompt, but to use Bash on a Windows computer, we need to download and install a program called Git Bash.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |