# Running git commands in private repo inside docker not working correctly

**URL:** <https://meta.discourse.org/t/running-git-commands-in-private-repo-inside-docker-not-working-correctly/67321>\
**Category:** Development\
**Created:** [August 2, 2017, 1:33pm UTC](https://meta.discourse.org/t/running-git-commands-in-private-repo-inside-docker-not-working-correctly/67321 "2017-08-02T13:33:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)\
**Post date:** [August 4, 2017, 2:32am UTC](https://meta.discourse.org/t/running-git-commands-in-private-repo-inside-docker-not-working-correctly/67321/4 "2017-08-04T02:32:20Z")

</div>

What happens if you try to ssh to the git repo host from inside your app?

```bash
cd /var/discourse
./launcher enter app
ssh -v user@github.com.or.wherever

```

The last few lines for me look like:

```plaintext
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Trying private key: /root/.ssh/id_ecdsa
debug1: Trying private key: /root/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).

```

(I created an id\_rsa key for this test, but it isn’t on gitbhub.) Do you see the key being offered?

---

_[View the full topic](https://meta.discourse.org/t/running-git-commands-in-private-repo-inside-docker-not-working-correctly/67321)._
