Skip to main content
All CollectionsUsing GitGit Troubleshooting
Permission Denied (publickey)
Permission Denied (publickey)
Toshi Dávila avatar
Written by Toshi Dávila
Updated over a month ago

If you receive a permission denied error, it means that the server is rejecting your Git connection. Some common reasons for the failure are:

  • not using the sudo command

  • connecting to the wrong server

  • not verifying your SSH key

  • not attaching the public key to your account

Using the sudo command

The sudo command is not typically used with Git. However, if you are using it, make sure to do so with every command otherwise Git does not process it.

Connecting to the correct server

It is possible that you are not using the correct server. To verify, open terminal and use the following command to make sure that you are using the server connected with your Assembla git repository:

ssh -vT git@git.assembla.com

Verifying your SSH key

Be sure that you have a private key created and loaded into SSH.

If you need to add a new SSH key, open terminal and use the ssh-add command. If a long string of numbers and letters is not generated, you must generate a new SSH key, and then associate it with Assembla.

Attaching the public key to your account

In order to enable a secure connection, you must provide your public key to Assembla.

To provide your public key to Assembla

  1. Open terminal.

  2. Start the SSH engine.

  3. Type ssh -vT git@git.assembla.com

  4. Press Enter.

If you are successful, the following message appears in the output:

Welcome! You have successfully authenticated

If you do not see a welcome message, your SSH key setup was not successful.

Instructions to set up Git are available using the following links:

Have questions? Email us at support@assembla.com

Did this answer your question?