SSH key doesn't work

I’ve created ssh keys in my machine and paste the pub key in GitLab. And when I try to check the connection with command ssh -Tvvv I have an error: Permission denied (publickey).
I’ve followed your instruction on how to create ssh keys. Please help me troubleshoot the issue.

Have you looked at the host system’s ssh log entries? You should be seeing the incoming connection with a reason why the connection failed.

Thank you, Danie. The issue was an ssh port number. The GitLab running from the docker container and therefore has its own port for ssh connections.

1 Like