How let gogs support ssh

After install gogs, i want to let gogs support ssh. In the insall web page, i filled the Run User with git. when I use ssh to git clone, gogs need me to input git@xxx's password. But I don’t know the git@xxx's password. What should I do to solve this problem? I use the docker codeskyblue/docker-gogs to run my container. And I also depend on the README to set SSH_PORT = 10022.

  • Gunicorn does not find main module with docker
  • Why rancher service disconnected sometimes?
  • Dockerfile php-fpm unmet dependencies
  • Docker-machine and Openstack / SSH
  • Timeout pushing image to nexus inside container docker
  • How to stop power shell script on error?
  • The requested URL returned error: 502 when running git clone inside a Docker container
  • Adding repos to the dockerfile
  • Nginx seems to crash on Sinatra app in Docker
  • How to get the service IP in Kubernetes?
  • TravisCI/Docker support: iptables: No chain/target/match by that name
  • ElasticBeanstalk Docker host network mode
  • One Solution collect form web for “How let gogs support ssh”

    From issues/1292, you need to:

    • check ssh with ssh -p 10022 git@xyz,
    • make sure your $HOME/.ssh/ public key is in your gogs account, not on the system’s authorized_keys,
    • check if a $HOME/.ssh/config file could help.

    Note that if you are using docker through a VM with boot2docker, you also need to add a port forwarding rule on that VM.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.