Unable to clone trellis repository to my computer

Hi. I’m trying to install trellis locally on my macbook pro running OSX Yosemite 10.10.5. I’ve installed all of the dependencies (Homebrew, Git, Ansible, Composer, Virtualbox and Vagrant)

However, when I try to clone the repository via the terminal I get the following error:

Warning: Permanently added the RSA host key for IP address 'my ip address' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I’ve tried two different commands:
git clone git@github.com:roots/trellis.git ansible
$ git clone git@github.com:roots/roots-example-project.com.git
but neither seems to work. It doesn’t create the Ansible directory or anything.

I’m not necessarily counting on using trellis/bedrock/sage on my current project as I’m nearly finished but I’m beginning a new one that I’d like to try this set up with. I’d greatly appreciate any help with this. Thanks!


This could easily be an issue with your GitHub ssh key. What happens when you run: ssh -T git@github.com?

If it fails then you can either follow GitHub’s guidance on setting up an ssh key or download over https i.e. https://github.com/roots/trellis.git

Thanks for your help. That’s exactly what the problem was. This is my first project using Git so I’m still feeling my way around.