Sample Header Ad - 728x90

Path rewriting/aliasing upon SSH connection

0 votes
1 answer
210 views
I've migrated my git repositories from Gitlab to Gogs and I've taken the opportunity to change some organization/group names and reorganize repositories. I'd like to maintain the current Git+SSH URLs working however for projects using composer or other packagers. I've looked for a way to do it inside Gogs but nothing seems to exist to this purpose so I had another idea (which could also be useful in other contexts): rewriting the SSH path on the server, like Apache does with mod_rewrite. Is there a way to do just that with SSH? Note that adding a command in the .authorized_keys is a bit tricky since Gogs already uses it to mediate access to the repositories through a command.
Asked by lgeorget (14352 rep)
Mar 22, 2021, 08:32 AM
Last activity: Mar 27, 2021, 06:05 PM