# ERROR: could not read Username for 'https://github.com': terminal prompts disabled

**URL:** <https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209>\
**Category:** Questions\
**Tags:** git\
**Created:** [February 19, 2023, 12:17pm UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209 "2023-02-19T12:17:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yummi\_Donut](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yummi_donut/32/18522_2.png) [@Yummi\_Donut](https://community.n8n.io/u/Yummi_Donut)\
**Post date:** [February 19, 2023, 12:17pm UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/1 "2023-02-19T12:17:54Z")

</div>

## Describe the issue/error/question

I can’t use git pull as a action in my workflow.

## What is the error message (if any)?

`ERROR: could not read Username for 'https://github.com': terminal prompts disabled `

## Please share the workflow

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:** 0.216.0
- **Database you’re using (default: SQLite):** SQLite
- **Running n8n with the execution process [own(default), main]:** own
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:** Docker

---

<div class="post-metadata">

**Author:** ![Niklas\_Hatje](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/niklas_hatje/32/155398_2.png) [@Niklas\_Hatje](https://community.n8n.io/u/Niklas_Hatje)\
**Post date:** [February 20, 2023, 6:07pm UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/2 "2023-02-20T18:07:26Z")

</div>

Hey @Yummi_Donut, welcome to the community. Have you tried disabling the Github trigger or the manual trigger once? Sometimes the workflow doesn’t know where to start and takes the wrong path 😳. Otherwise: Is your username setup properly?

---

<div class="post-metadata">

**Author:** ![Yummi\_Donut](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yummi_donut/32/18522_2.png) [@Yummi\_Donut](https://community.n8n.io/u/Yummi_Donut)\
**Post date:** [February 22, 2023, 3:56pm UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/3 "2023-02-22T15:56:25Z")

</div>

I tried disconnecting both triggers.  
And the username + accestoken were set through git credentials in n8n

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [February 22, 2023, 5:06pm UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/4 "2023-02-22T17:06:25Z")

</div>

Hey @Yummi_Donut,

That error is coming back from Github, You need to set the git config options for the username and if it is a private repo you will also need to add the SSH key to your docker instance so it can be read from the git node.

The git node uses the git cli behind the scenes so it would be the same options you would normally need from a desktop when using it.

---

<div class="post-metadata">

**Author:** ![Yummi\_Donut](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yummi_donut/32/18522_2.png) [@Yummi\_Donut](https://community.n8n.io/u/Yummi_Donut)\
**Post date:** [February 23, 2023, 5:11pm UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/5 "2023-02-23T17:11:52Z")

</div>

And if I don’t use SSH Keys on my git repo? Normally I user my github username and a github acces token to pull/push stuff.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [February 23, 2023, 6:34pm UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/6 "2023-02-23T18:34:51Z")

</div>

Hey @Yummi_Donut,

I am not sure what the git command line option would be for that. It is designed to be non interactive, the general advice I can find online recommends using ssh keys and I can’t see anything for passwords.

---

<div class="post-metadata">

**Author:** ![Yummi\_Donut](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yummi_donut/32/18522_2.png) [@Yummi\_Donut](https://community.n8n.io/u/Yummi_Donut)\
**Post date:** [February 23, 2023, 8:05pm UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/7 "2023-02-23T20:05:37Z")

</div>

Ok, I got my SSK key, how can I add this to my docker instance?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [February 24, 2023, 10:22am UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/8 "2023-02-24T10:22:23Z")

</div>

Hi Yummi,

I would try mapping it as a volume to your container like you normally would to add files to any container then once set it should be a case of setting the git config item although you could try adding the key to the users home directory in the container which would be something like `/home/node/.ssh/`

---

<div class="post-metadata">

**Author:** ![Yummi\_Donut](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yummi_donut/32/18522_2.png) [@Yummi\_Donut](https://community.n8n.io/u/Yummi_Donut)\
**Post date:** [February 25, 2023, 11:15pm UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/9 "2023-02-25T23:15:35Z")

</div>

Still didn’t get it working  
I generated a github ssh key that was saved in ` /root/.ssh/` and I mapped it into `/root/.n8n/.ssh` inside the docker container. But I get the same error.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [February 26, 2023, 7:46am UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/10 "2023-02-26T07:46:53Z")

</div>

n8n does normally not run as `root` inside of Docker, rather as `node`. For that reason please try `/home/node/.ssh/` as suggested by @Jon .

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 27, 2023, 7:47am UTC](https://community.n8n.io/t/error-could-not-read-username-for-https-github-com-terminal-prompts-disabled/23209/11 "2023-05-27T07:47:24Z")

</div>

Closed on May 27, 2023, 7:47am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
