I’ve set up gitlab for my server, but now i’m having some problems with ssh key authentication… I’ve added a new ssh key that has been generated with puttygen in the gitlab web interface, i’m using git extensions and i’m trying to clone a repository. When i click on clone it tells me the server didn’t accept my key… Key authentication works fine on ssh users i’ve manually created, so i checked the gitlab authorized_keys file. This is what it looks like, could this be the cause? Do i need to change my sshd config to allow commands?
authorized_keys file:
############################################################################################################################################################################################################################################
############################################################################################################################################################################################################################################
command="/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-shell key-3",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty (public key here)
I also checked /var/log/secure
and i’m seeing this from ssh:
Oct 10 05:37:24 dynavio.com sshd[23727]: error: Received disconnect from xx.xxx.xxx.xx: 14: No supported authentication methods available [preauth]
Oct 10 05:37:33 dynavio.com sshd[23747]: error: Received disconnect from xx.xxx.xxx.xx: 14: No supported authentication methods available [preauth]
Oct 10 05:37:38 dynavio.com sshd[23757]: error: Received disconnect from xx.xxx.xxx.xx: 14: No supported authentication methods available [preauth]
Oct 10 05:38:37 dynavio.com sshd[23927]: error: Received disconnect from xx.xxx.xxx.xx: 14: No supported authentication methods available [preauth]
Oct 10 05:38:46 dynavio.com sshd[23947]: error: Received disconnect from xx.xxx.xxx.xx: 14: No supported authentication methods available [preauth]
Oct 10 05:48:06 dynavio.com sshd[25311]: error: Received disconnect from xx.xxx.xxx.xx: 14: No supported authentication methods available [preauth]
Oct 10 05:48:14 dynavio.com sshd[25329]: error: Received disconnect from xx.xxx.xxx.xx: 14: No supported authentication methods available [preauth]
Oct 10 05:54:10 dynavio.com sshd[26193]: error: Received disconnect from xx.xxx.xxx.xx: 14: No supported authentication methods available [preauth]