Gitea + drone ruuner-ssh and runner-exec not working

I had deploy Gitea + drone + runner for my group. Normally runner-docker works fine, but runner-ssh and runner-exec don’t work

deploy by docker compose

gitea

version: "3"

services:
  gitea:
    image: gitea/gitea:1.15.7
    # container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - DB_TYPE=mysql
      - DB_HOST=db:3306
      - DB_NAME=gitea
      - DB_USER=gitea
      - DB_PASSWD=xxxxxxx
    restart: always
    volumes:
      - ./gitea:/data
      - /home/git/.ssh/:/data/git/.ssh
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "33333:3000"
      - "22:22"
    depends_on:
      - db

  db:
    image: mariadb
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=xxxxxx
      - MYSQL_USER=gitea
      - MYSQL_PASSWORD=xxxxxx
      - MYSQL_DATABASE=gitea
    volumes:
      - ./db:/var/lib/mysql

drone

version: "3"
services:
  drone:
    image: drone/drone
    container_name: drone
    ports:
      - "8800:80"
      # - "44443:443"
    volumes:
      - ./drone:/data
    environment:
      - DRONE_GITEA_SERVER=https://git.ioiox.com
      - DRONE_GITEA_CLIENT_ID=xxxxxxxxx
      - DRONE_GITEA_CLIENT_SECRET=xxxxxxxxx
      - DRONE_RPC_SECRET=yyyyyyyyyyyyyy
      - DRONE_SERVER_HOST=drone.ioiox.com
      - DRONE_SERVER_PROTO=https
      - DRONE_GIT_ALWAYS_AUTH=true
      - DRONE_USER_CREATE=username:stilleshan,admin:true
    restart: always

runner-docker & runner-ssh

version: "3"
services:
  drone-runner-docker:
    image: drone/drone-runner-docker:1
    container_name: drone-runner-docker
    # ports:
    #   - "3000:3000"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - TZ=Asia/Shanghai
      - DRONE_RPC_PROTO=https
      - DRONE_RPC_HOST=drone.ioiox.com
      - DRONE_RPC_SECRET=yyyyyyyyyyyyyy
      - DRONE_RUNNER_CAPACITY=5
      - DRONE_RUNNER_NAME=runner-docker
    restart: always

  drone-runner-ssh:
    image: drone/drone-runner-ssh
    container_name: drone-runner-ssh
    # ports:
    #   - 3001:3000
    environment:
      - TZ=Asia/Shanghai
      - DRONE_RPC_PROTO=https
      - DRONE_RPC_HOST=drone.ioiox.com
      - DRONE_RPC_SECRET=yyyyyyyyyyyyyy
      - DRONE_RUNNER_CAPACITY=5
      - DRONE_RUNNER_NAME=runner-ssh
    restart: always

runner-exec

Install in centos7 by drone.io documents

issue

runner-exec

When I push to private repo activate runner, something wrong about git clone. But public repo works fine.
I tried setting DRONE_GIT_ALWAYS_AUTH=true or false also to no effect

1

runner-ssh

I use type: ssh in .drone.yml, Can trigger workflows. But got clone: skipped error, when i set disable clone step, also got error “greeting: skipped”, I think the whole workflow can not working.

2