Skip to content

Gitea starts SSH server on incorrect port #8453

Closed
@gamelaster

Description

@gamelaster
  • Gitea version (or commit ref): 1.10.0+dev-402-g1fe81bc22
  • Git version: 2.22.0
  • Operating system: Linux Ubuntu
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I have been using docker container gitea/gitea:1 (1.9.2) with following configuration:

...
      - START_SSH_SERVER=true
      - SSH_PORT=222
      - SSH_LISTEN_PORT=22
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
    ports:
      - "3000:3000"
      - "222:22"
    depends_on:
      - db

Everything have been working fine, until I switched to gitea/gitea:latest, after this, I see in log the log that servers starts on port 222, instead of 22, even in config is specified 22, so this means I'm getting connection refused when trying to connect to built in git server. After changing the port forwarding, everything works well. Switching back 1.9.2 makes everything work correctly again

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions