# Trying to get Travis CI to work with SSH Key w/o signing into Github

**URL:** <https://travis-ci.community/t/trying-to-get-travis-ci-to-work-with-ssh-key-w-o-signing-into-github/414>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** build-env\
**Created:** [October 18, 2018, 6:18pm UTC](https://travis-ci.community/t/trying-to-get-travis-ci-to-work-with-ssh-key-w-o-signing-into-github/414 "2018-10-18T18:18:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![logankilpatrick](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/logankilpatrick/32/1761_2.png) [@logankilpatrick](https://travis-ci.community/u/logankilpatrick)\
**Post date:** [October 18, 2018, 6:18pm UTC](https://travis-ci.community/t/trying-to-get-travis-ci-to-work-with-ssh-key-w-o-signing-into-github/414/1 "2018-10-18T18:18:13Z")

</div>

I already followed the steps exactly specified at [this link](https://stackoverflow.com/questions/27444891/how-to-add-ssh-key-in-travis-ci#27447256)

However, I am still having the issue. My build will get stuck when accessing the private repo.

```auto
$ julia --check-bounds=yes -e 'Pkg.clone("https://github.com/xxxx/xxxx.git")'
INFO: Cloning xxxx from https://github.com/xxxx/xxxx.git
Username for 'https://github.com':
Done: Job Cancelled

```

Note: I manually cancel it after a few minutes of waiting. How can I get it to use the SSH key I have setup and bypass this username and password field?

Note: xxxx is used in place of the name of my project to make this post general. I have already checked out the links on Travis CI and they don’t make it clear what needs to occur. Thank you!

---

<div class="post-metadata">

**Author:** ![josh](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/josh/32/12_2.png) [@josh](https://travis-ci.community/u/josh)\
**Post date:** [October 19, 2018, 7:10pm UTC](https://travis-ci.community/t/trying-to-get-travis-ci-to-work-with-ssh-key-w-o-signing-into-github/414/2 "2018-10-19T19:10:13Z")

</div>

Could you try changing the git url to use git+ssh? eg. `git@github.com:xxx/xxx.git`

---

<div class="post-metadata">

**Author:** ![logankilpatrick](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/logankilpatrick/32/1761_2.png) [@logankilpatrick](https://travis-ci.community/u/logankilpatrick)\
**Post date:** [October 19, 2018, 7:28pm UTC](https://travis-ci.community/t/trying-to-get-travis-ci-to-work-with-ssh-key-w-o-signing-into-github/414/3 "2018-10-19T19:28:15Z")

</div>

Yes. Just to be clear, if I want to use the Deploy or User key, all I need to do it is change it to ‘Pkg.clone("git@github.com:organizer\_name/dependancy\_I\_want\_installed.git")’?

---

<div class="post-metadata">

**Author:** ![josh](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/josh/32/12_2.png) [@josh](https://travis-ci.community/u/josh)\
**Post date:** [October 20, 2018, 1:06am UTC](https://travis-ci.community/t/trying-to-get-travis-ci-to-work-with-ssh-key-w-o-signing-into-github/414/4 "2018-10-20T01:06:20Z")

</div>

That is what I am thinking needs to happen to make it work, but not 100% sure until you try it 🙂

---

<div class="post-metadata">

**Author:** ![logankilpatrick](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/logankilpatrick/32/1761_2.png) [@logankilpatrick](https://travis-ci.community/u/logankilpatrick)\
**Post date:** [November 14, 2018, 2:14am UTC](https://travis-ci.community/t/trying-to-get-travis-ci-to-work-with-ssh-key-w-o-signing-into-github/414/5 "2018-11-14T02:14:39Z")

</div>

Hey Josh, sorry for the delay. I was resolving other issues. I did what you suggested: ‘Pkg.clone("git@github.com:organizerName/REPO\_name.git")’ and I got the following error:  
ERROR: failed to clone from [git@github.com](mailto:git@github.com):organizerName/REPO\_name.git, error: GitError(Code:EEOF, Class:SSH, ERROR: Repository not found.)

What should I try next?

---

<div class="post-metadata">

**Author:** ![logankilpatrick](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/logankilpatrick/32/1761_2.png) [@logankilpatrick](https://travis-ci.community/u/logankilpatrick)\
**Post date:** [November 14, 2018, 2:34am UTC](https://travis-ci.community/t/trying-to-get-travis-ci-to-work-with-ssh-key-w-o-signing-into-github/414/6 "2018-11-14T02:34:19Z")

</div>

Also, note that the API Token documentation for private repo dependencies does not work. [https://docs.travis-ci.com/user/private-dependencies/#api-token](https://docs.travis-ci.com/user/private-dependencies/#api-token)

---

<div class="post-metadata">

**Author:** ![logankilpatrick](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/logankilpatrick/32/1761_2.png) [@logankilpatrick](https://travis-ci.community/u/logankilpatrick)\
**Post date:** [November 14, 2018, 2:46am UTC](https://travis-ci.community/t/trying-to-get-travis-ci-to-work-with-ssh-key-w-o-signing-into-github/414/7 "2018-11-14T02:46:13Z")

</div>

[https://docs.travis-ci.com/user/languages/go/#installing-private-dependencies](https://docs.travis-ci.com/user/languages/go/#installing-private-dependencies) these steps do not resolve the issue either
