All Collections
Using Git
Git Troubleshooting
Permission Denied (publickey)
Permission Denied (publickey)
Toshi Dávila avatar
Written by Toshi Dávila
Updated over a week ago

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

Are you using the “sudo” command?

The “sudo” command should not typically be used with Git. However, if you are using it, make sure to do so with every command that you do. Otherwise, Git will not process it.

Are you connected to the correct server?

It is possible that you are not using the correct server. Open Terminal, and make sure that you are using the server connected with your Assembla git repository.

ssh -vT

Is your SSH key verified to use?

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 utilize the “ssh-add” command. If a long string of numbers and letters is not generated, you need to generate a new SSH key and associate it with Assembla.

Is the public key attached to your account?

In order to enable a secure connection, you need to provide your public key to Assembla by:

  1. Open Terminal

  2. Start the SSH engine

  3. Type ssh -vT and press ‘Enter’ button.

Scroll down the output. If successful, you will see:

Welcome! You have successfully authenticated

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

Instructions to set up Git are available here

Have questions? Email us at

Did this answer your question?