Git SSH keys
SSH keys are used to identify trusted computers without involving passwords. In Buddy, you can either use your existing keys with or generate a new pair.
Generating Git SSH keys in Buddy
- Click your avatar, top-right to bring up the profile sidebar.
- Click Manage your profile (alternatively, type
/my-id
after your domain). Go to SSH keys and click Add a new SSH key:
SSH Keys tab
- Proceed with the security check.
Follow the instructions to generate a new pair of SSH keys:
Generating an SSH key
Buddy will automatically upload the public key to the service - you don’t have to add it manually.
Generating SSH keys manually
Fire up your console/terminal and type:
ssh-keygen -t rsa -b 4096 -C "your_email@address"
$- Press Enter when prompted to select the default file in which to save the key.
- (Optional) Type passphrase for higher security.
- Review the fingerprint (id) of your key and close the console.
Adding existing SSH keys
- Click your avatar, top-right to bring up the profile sidebar.
- Click Manage your profile (alternatively, type
/my-id
after your domain). - Go to SSH keys in the Settings tab and click Add a new SSH key.
- Paste the contents of your public key or click upload the key from disk.
- Hit Create a new key to add the key to Buddy
Adding existing SSH keys
Solving problems with SSH keys
~/.ssh
. The default name of the key is id_rsa
. You can choose another name if you wish, but it must be reflected accordingly in the configuration.
Cannot clone or push/pull repository
If you’re not able to clone or push/pull from the repository, make sure you have configured everything according to the list below:
File
~/.ssh/config
should contain an entry with our service:Host app.buddy.works HostName app.buddy.works User buddy IdentityFile ~/.ssh/id_rsa
The SSH URL to your project looks like this (HTTP URL will not work):
buddy@app.buddy.works:WORKSPACE/PROJECT
The key has been added to the ssh-agent:
ssh-add ~/.ssh/id_rsa
The remote address has been properly configured in the repository. The local repository folder contains a hidden
.git
directory withconfig
file. Make sure the file contains the following entry:[remote "origin"] url = buddy@app.buddy.works:WORKSPACE/PROJECT fetch = +refs/heads/*:refs/remotes/origin/*
Permission denied error
If you’re receiving the following error it means that the key added to Buddy doesn’t match the key on your computer:
Permission denied (publickey,keyboard-interactive). fatal: The remote end hung up unexpectedly
$$
Here’s what you should do:
- Go to your
~/.ssh
folder and double-check if the public key in the folder is the same as the one in Buddy. Run this command to see if Buddy can authenticate properly with the keys:
ssh buddy@app.buddy.works
If everything’s alright, you’ll receive a response of this type:Hi there! You are good to go. Just start pushing and pulling :) Connection to buddy.works closed.
$$
ssh -vvv buddy@app.buddy.works
and send the output to support@buddy.works - we’ll do our best to help you out.
Last modified on April 26, 2022