Prompting for password although ssh key is set up

Hello everyone,
I have a little problem with my fresh Gitea installation. I set it up on my server in the LAN, using docker compose and using following yaml file:

version: "2"

networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:1
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - DB_TYPE=postgres
      - DB_HOST=db:5432
      - DB_NAME=gitea
      - DB_USER=giteauser
      - DB_PASSWD=password
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "222:22"
    depends_on:
      - db

  db:
    image: postgres:12
    restart: always
    environment:
      - POSTGRES_USER=giteauser
      - POSTGRES_PASSWORD=password
      - POSTGRES_DB=gitea
    networks:
      - gitea
    volumes:
      - ./postgres:/var/lib/postgresql/data

After that I set up an account with the corresponding RSA key so I can push, pull, clone, etc. without having to use a password. Sadly now that I try to clone my first repository, I’m asked for a password. Does anyone have a clue why this happens or how I could approach this problem?
(FYI: I added the same RSA key to my GitHub account and tried to clone a repository from there. This worked, so I guess I messed up the Gitea setup but what did I do wrong?)

git@192.168.2.154:222/St0rmhunter/FreezerApp.git
Cloning into 'FreezerApp'...
git@192.168.2.154's password:

Thanks in advance for your help :slight_smile:

Hello,

I have the same issue. I also create an account and setup a SSH key like i did in gitlab and gitea ask me for a password when i try to clone a repo.
Did you find the soluce ?

Edit :
Here is the part of the docker-compose file i changed :
- GITEA__server__DOMAIN=gitea.example.xyz
- GITEA__server__SSH_DOMAIN=gitea.example.xyz
- GITEA__server__HTTP_PORT=3000
- GITEA__server__SSH_LISTEN_PORT=22
- GITEA__server__SSH_PORT=2222
- GITEA__server__ROOT_URL=https://gitea.example.xyz

This work with this url repo : ssh://git@gitea.example.xyz:2222/some/repo.git

Thanks