CentOS git push Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Created by: enira
I am getting the following error when trying to push to GitLab:
Pushing to git@:/.git Permission denied (publickey,gssapi-keyex,gssapi-with-mic). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Followed procedure: Clean install: wget https://downloads-packages.s3.amazonaws.com/centos-6.5/gitlab-7.1.1_omnibus-1.el6.x86_64.rpm sudo yum install openssh-server sudo yum install postfix # Select 'Internet Site', using sendmail instead also works, exim has problems sudo rpm -i gitlab-7.1.1_omnibus-1.el6.x86_64.rpm
sudo nano /etc/gitlab/gitlab.rb # changed host
sudo gitlab-ctl reconfigure sudo lokkit -s http -s ssh
Inside GitLab: group, added project push to provided url and added SSH key to user pushing.
What is wrong?