# \[SOLVED\] Git clone via ssh asking for gitea user

**URL:** <https://forum.gitea.com/t/solved-git-clone-via-ssh-asking-for-gitea-user/3410>\
**Category:** Install/Maintain/Configure\
**Created:** [June 24, 2021, 11:46am UTC](https://forum.gitea.com/t/solved-git-clone-via-ssh-asking-for-gitea-user/3410 "2021-06-24T11:46:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/ralf/32/1399_2.png) [@ralf](https://forum.gitea.com/u/ralf)\
**Post date:** [June 24, 2021, 11:46am UTC](https://forum.gitea.com/t/solved-git-clone-via-ssh-asking-for-gitea-user/3410/1 "2021-06-24T11:46:53Z")

</div>

When I try to clone a git repository created with gitea, I get asked for the password of the gitea user.  
The public key I added to my Gitea account gets not used.  
It seems to be the same or very similar issue discussed here: [[SOLVED] Using regular Git ssh not working](https://forum.gitea.com/t/solved-using-regular-git-ssh-not-working/286)  
Except that I’m used the latest Arch Linux.  
It is a clean install of Gitea from the package manager with the default ssh settings in app.ini except for the SSH\_DOMAIN which is set to the actual domain. (I am not using the build-in SSH server)  
The user name for Gitea is gitea.

So:  
git clone gitea@$URL:ralf/GiteaSetup.git  
is asking me for the password of gitea.

---

<div class="post-metadata">

**Author:** ![ralf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/ralf/32/1399_2.png) [@ralf](https://forum.gitea.com/u/ralf)\
**Post date:** [June 24, 2021, 12:37pm UTC](https://forum.gitea.com/t/solved-git-clone-via-ssh-asking-for-gitea-user/3410/2 "2021-06-24T12:37:34Z")

</div>

You need to add the gitea user to the AllowUsers in /etc/ssh/sshd\_config 🤦‍♂️

[@Moderators](https://forum.gitea.com/groups/moderators): It may be a good idea to link this Post to the one I linked, so that people finding that post get inspired to check their ssh config 😁

---

<div class="post-metadata">

**Author:** ![0xorial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/0xorial/32/4454_2.png) [@0xorial](https://forum.gitea.com/u/0xorial)\
**Post date:** [March 5, 2024, 10:54am UTC](https://forum.gitea.com/t/solved-git-clone-via-ssh-asking-for-gitea-user/3410/3 "2024-03-05T10:54:00Z")

</div>

What is the point of having SSH keys in the UI then??

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [March 7, 2024, 4:28am UTC](https://forum.gitea.com/t/solved-git-clone-via-ssh-asking-for-gitea-user/3410/4 "2024-03-07T04:28:56Z")

</div>

Please open an new topic.

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [March 7, 2024, 4:29am UTC](https://forum.gitea.com/t/solved-git-clone-via-ssh-asking-for-gitea-user/3410/5 "2024-03-07T04:29:00Z")

</div>


