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.

  • chown in docker not changing user to root
  • Can't access django media from container volume
  • How do I expose ports in Docker on Windows 10?
  • Creating kubernetes cluster inside an existing VPC in AWS
  • Docker-compose corrupted directory when shared a multiple file/directory in the same mounting point
  • Host verification failed error when running git clone inside dockerfile on AWS EC2 instance as host and a private git repository
  • Docker - How to get the name (user/repo:tag) of the base image used to build another image
  • Docker Madlib Postgres
  • Requirement to accept network packets in container from host or outside? (docker port forwarding)
  • Docker cannot find JVM
  • docker: different PID for `top` and `ps`
  • Accessing other machines on a vagrant/virtual box host only network from within a docker container
  • 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.