Gogs asks for password in ssh

Gogs Version:
Linux x64

I’m having trouble cloning a repo via SSH.

What I’ve tried:

  • I DO can log to the system via SSH with gogs user but I’m told that that user does not have shell access, do I need it?
  • The authorized_keys in the gogs user home dir has the “special” string before the actual key:

command="/home/gogs/gogs/gogs serv key-4 --config=’/home/gogs/gogs/custom/conf/app.ini’",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa …`

  • Chuck of my app.ini config file:

    DOMAIN = repo.xxxx.com
    PROTOCOL = https
    CERT_FILE = /home/gogs/cert.pem
    KEY_FILE = /home/gogs/privkey.pem
    HTTP_PORT = 3000
    ROOT_URL = https://repo.xxx.com:3000/
    DISABLE_SSH = false
    SSH_PORT = 22
    OFFLINE_MODE = false

Any help is appreciated! Thanks!

Hi, just asking, have you read How to config SSH settings?