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 git@git.assembla.com
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:
Open Terminal
Start the SSH engine
Type ssh -vT git@git.assembla.com 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 support@assembla.com