# Ansible galaxy ssh private repository dependency not downloaded

**URL:** <https://forum.ansible.com/t/ansible-galaxy-ssh-private-repository-dependency-not-downloaded/28095>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [July 19, 2018, 2:27pm UTC](https://forum.ansible.com/t/ansible-galaxy-ssh-private-repository-dependency-not-downloaded/28095 "2018-07-19T14:27:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ansible-quest](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@ansible-quest](https://forum.ansible.com/u/ansible-quest)\
**Post date:** [July 19, 2018, 2:27pm UTC](https://forum.ansible.com/t/ansible-galaxy-ssh-private-repository-dependency-not-downloaded/28095/1 "2018-07-19T14:27:16Z")

</div>

Hello,

I have a private repository allowing ssh access with access key. I have a requirements.yml with the following content:

- name: molecule  
scr: ssh://git@myprivate.repo.com/test/ansible-role-molecule.git  
scm: git

When running sudo -E ansible-galaxy install I get the following error:

[WARNING]: - molecule was NOT installed successfully: - command git clone molecule molecule failed in directory  
/home/vagrant/.ansible/tmp/ansible-local-121256XVDiV/tmp\_Djl3u (rc=128)

When i use git clone [git@myprivate.repo.com](mailto:git@myprivate.repo.com)/test/ansible-role-molecule.git, I can clone my repository. It seems that the command executed by ansible-galaxy is totally wrong : git clone molecule molecule

What could be wrong with my requirements.yml ? I tested everything indicated [https://github.com/ansible/ansible/issues/8937#issuecomment-55101459](https://github.com/ansible/ansible/issues/8937#issuecomment-55101459) but it doesn’t work  
I a using:

- ansible-galaxy 2.6.1
- python version = 2.7.13

---

<div class="post-metadata">

**Author:** ![mhalano](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mhalano/32/1815_2.png) [@mhalano](https://forum.ansible.com/u/mhalano)\
**Post date:** [July 20, 2018, 6:44pm UTC](https://forum.ansible.com/t/ansible-galaxy-ssh-private-repository-dependency-not-downloaded/28095/2 "2018-07-20T18:44:19Z")

</div>

May be because you’re using sudo to execute ansible-galaxy and just your regular has the keys to access the repository.
