# Previews workflow -- "fatal: could not read Username for 'https://github.com': No such device or address"

**URL:** <https://community.okteto.com/t/previews-workflow-fatal-could-not-read-username-for-https-github-com-no-such-device-or-address/434>\
**Category:** Help\
**Created:** [December 16, 2022, 7:06pm UTC](https://community.okteto.com/t/previews-workflow-fatal-could-not-read-username-for-https-github-com-no-such-device-or-address/434 "2022-12-16T19:06:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjoldersma](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/benjoldersma/32/220_2.png) [@benjoldersma](https://community.okteto.com/u/benjoldersma)\
**Post date:** [December 16, 2022, 7:06pm UTC](https://community.okteto.com/t/previews-workflow-fatal-could-not-read-username-for-https-github-com-no-such-device-or-address/434/1 "2022-12-16T19:06:29Z")

</div>

I have okteto self-hosted running - it’s just lovely. thank you. working great for dev environments.

Now I’m trying to get the preview worfklows running based on [these instructions](https://www.okteto.com/docs/cloud/preview-environments/preview-environments-github/), but the workflow is failing. I’m at a bit of a loss here - I haven’t changed anything in the workfows (well, I did remove the -cindy-lopez suffix, but I don’t think that should be an issue right?)

any ideas!?

```auto
checkout command: '[git clone --depth 1 https://github.com/parrot-time/fuji-service -b otketo-previews /okteto/src]'
Cloning git repository 'https://github.com/parrot-time/fuji-service' branch 'otketo-previews'...
Cloning into '/okteto/src'...
fatal: could not read Username for 'https://github.com': No such device or address
failed to clone repository with URL 'https://github.com/parrot-time/fuji-service'
falling back to 'ssh://git@github.com/parrot-time/fuji-service'....
checkout command: '[git clone --depth 1 ssh://git@github.com/parrot-time/fuji-service -b otketo-previews /okteto/src]'
Cloning git repository 'ssh://git@github.com/parrot-time/fuji-service' branch 'otketo-previews'...
Cloning into '/okteto/src'...
Warning: Permanently added the ECDSA host key for IP address '192.30.255.113' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
exit status 128
git-pull
 x Pipeline 'pr-10' failed

```

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [December 16, 2022, 7:13pm UTC](https://community.okteto.com/t/previews-workflow-fatal-could-not-read-username-for-https-github-com-no-such-device-or-address/434/2 "2022-12-16T19:13:29Z")

</div>

Hey @benjoldersma ! From the logs, it seems like the repo you are using is private?

If that’s the case, you need to do some additional configuration on your Okteto Self-Hosted instance to let Okteto clone private repositories.

With Github, there are two different options:

1. Add the cluster SSH key to your Github Account, and use an SSH URL instead of https. [This page](https://www.okteto.com/docs/administration/private-repositories/ssh-key/) documents how to configure that.
2. Create a Github App in your organization, and use Okteto to use it. [This page](https://www.okteto.com/docs/administration/private-repositories/github-app/) documents that process.

Hope this helps!
