# Wrong ssh url path

**URL:** <https://forum.gitea.com/t/wrong-ssh-url-path/183>\
**Category:** Install/Maintain/Configure\
**Created:** [January 25, 2018, 12:01pm UTC](https://forum.gitea.com/t/wrong-ssh-url-path/183 "2018-01-25T12:01:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [May 24, 2018, 6:03pm UTC](https://forum.gitea.com/t/wrong-ssh-url-path/183/3 "2018-05-24T18:03:33Z")

</div>

Here is a response from @daviian on [another forum post](https://forum.gitea.com/t/solved-using-regular-git-ssh-not-working/286) which likely covers your issues:

> Hi,

> To clarify the SSH url: the stuff after the colon is for internal use in gitea. Gitea itself provides the mapping to the actual repository location.  
> So what you do when using the original path is bypassing gitea, which shouldn’t be possible at all!
> 
> One reason this happens is that you set your SSH key in the authorized\_keys file yourself with e.g. ssh-copy-id. However that’s wrong and you should definitely let gitea handle this file.  
> Furthermore everytime a user adds an SSH key via gitea web-UI the authorized\_keys file gets overwritten.
> 
> Another thing is that usually the user from the SSH url is git or whatever is configured in the app.ini and not the actual gitea-user itself.
> 
> The first thing you should try now is to go into the Admin settings on the gitea UI and execute:
> 
> ```
> Update the ‘.ssh/authorized_keys’ file with Gitea SSH keys. (Not needed for the built-in SSH server.)
> Resynchronize pre-receive, update and post-receive hooks of all repositories.
> 
> ```
> 
> After that you HAVE to set your SSH keys through gitea web-UI.
> 
> Hopefully that solves your issue!

---

_[View the full topic](https://forum.gitea.com/t/wrong-ssh-url-path/183)._
