Git push over ssh

Hi!

I have a problem with my new gitlab server.
when ever i try to push somthing to gitlab over ssh with ssh key i run into a problem where after the key auth is good the server asks for password for git@git.mydomain.org and it do not get pushed at all.
If i push or pull over HTTP it works fine

The server is setup using Docker and https://www.portainer.io/ template docker image on an Ubuntu 16.04 server.
I have changed the ssh port on both the server and in the gitlab config

I can how ever push with the same key to another gitlab server, with out problems so i dont think the key is the problem

Hi,

Try to see the log when doing push, you may be able to get some error

docker logs --tail=1000 -f container-name

Check that your ssh port is mapped to your container correctly:

$docker ps | grep gitlab

88e9c8c8fda9 gitlab “/assets/wrapper” 26 hours ago Up 26 hours (healthy) 443/tcp, 192.168.1.6:4008->22/tcp, 192.168.1.6:4009->80/tcp

Check that your public key is known by gitlab on both the container’s IP address and on the external IP address:

$docker inspect gitlab | grep IPAddress

“IPAddress”: “172.17.0.15”

$ssh -p 22 -T git@172.17.0.15

Welcome to GitLab, chdev!

$ssh -p 4008 -T git@192.168.1.6

Welcome to GitLab, chdev!