SSH_PORT setting does not change clone url #1867

Closed
opened 2025-11-02 04:15:48 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @wucke13 on GitHub (Jun 5, 2018).

  • Gitea version: 1.3.2 Docker
  • Git version: built-in
  • Operating system: linux86_64
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

When setting the SSH_PORT to 7022, the ssh port displayed in the clone URL still keeps unmentioned (git@git.domain.tld:user/repo.git).
Relevant lines from my docker-compose.yml:

      - START_SSH_SERVER=true
      - SSH_PORT=7022
      - SSH_LISTEN_PORT=22

What am I missing?

Originally created by @wucke13 on GitHub (Jun 5, 2018). - Gitea version: 1.3.2 Docker - Git version: built-in - Operating system: linux86_64 - Database: - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant ## Description When setting the SSH_PORT to 7022, the ssh port displayed in the clone URL still keeps unmentioned (`git@git.domain.tld:user/repo.git`). Relevant lines from my `docker-compose.yml`: ``` - START_SSH_SERVER=true - SSH_PORT=7022 - SSH_LISTEN_PORT=22 ``` What am I missing?
Author
Owner

@techknowlogick commented on GitHub (Jun 6, 2018):

@wucke13 what does your app.ini say in regards to those settings?

Edit: 1.4.2 is the latest version and may have some fixes that aren't in 1.3.2

@techknowlogick commented on GitHub (Jun 6, 2018): @wucke13 what does your app.ini say in regards to those settings? Edit: 1.4.2 is the latest version and may have some fixes that aren't in 1.3.2
Author
Owner

@wucke13 commented on GitHub (Jun 6, 2018):

From app.ini:

SSH_PORT         = 22

However, since that is under the [server] section, im unsure whether it references the port of the ssh server or the port displayed in GUI?

Regarding the version: Under https://hub.docker.com/r/gitea/gitea the user is advised to user version 1.3.2, under https://docs.gitea.io/en-us/install-with-docker/ to use latest. Which one ist the way to go?

Furthermore, latest in docker hub does not resolve to 1.4.2.

@wucke13 commented on GitHub (Jun 6, 2018): From `app.ini`: ``` SSH_PORT = 22 ``` However, since that is under the `[server]` section, im unsure whether it references the port of the ssh server or the port displayed in GUI? Regarding the version: Under [https://hub.docker.com/r/gitea/gitea](https://hub.docker.com/r/gitea/gitea/) the user is advised to user version *1.3.2*, under [https://docs.gitea.io/en-us/install-with-docker/](https://docs.gitea.io/en-us/install-with-docker/) to use *latest*. Which one ist the way to go? Furthermore, *latest* in docker hub does not resolve to *1.4.2*.
Author
Owner

@lafriks commented on GitHub (Jun 7, 2018):

Latest in docker is from master branch. For stable releases it is recommend to use 1.4 docker tag

@lafriks commented on GitHub (Jun 7, 2018): Latest in docker is from master branch. For stable releases it is recommend to use 1.4 docker tag
Author
Owner

@wucke13 commented on GitHub (Jun 8, 2018):

Thanks @lafriks . I think it would be good to communicate that on both of the pages I linked.
I changed my docker-compose.yml to tag 1.4, however the error still persists.

I changed the value SSH_PORT from 22 to 7022. That did the trick. For further reference, this settings corespondents to the port displayed in the UI, not the port the internal ssh server uses.

@wucke13 commented on GitHub (Jun 8, 2018): Thanks @lafriks . I think it would be good to communicate that on both of the pages I linked. I changed my `docker-compose.yml` to tag `1.4`, however the error still persists. I changed the value `SSH_PORT` from `22` to `7022`. That did the trick. For further reference, this settings corespondents to the port displayed in the UI, not the port the internal ssh server uses.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1867