Git на сервере отвергает ключ?

Всем доброго времени суток.
Настраиваем на пару с админами на сервере гит.
В общем я геню ssh ключ (без пароля, просто 3 раза нажимаю enter) и кидаю админам id_rsa.pub.
Они добавляют его в файл authorized_keys пользователя git.
Я пытаюсь выполнить у себя git clone git@ip_of_server:test.git
У меня запрашивают пароль, ничего не ввожу и жму enter, т.к. на сам ключ пароль не ставил.
Но сервер отвечает: Permission denied, please try again.
И так еще 2 раза(предожение ввести пароль и Permission denied, please try again.), и потом выдает:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


Вывод команды ssh -vT git@ip_of_server :
OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ip_of_server [ip_of_server] port 22.
debug1: Connection established.
debug1: identity file /home/ruut/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ruut/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ruut/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ruut/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ruut/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ruut/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ruut/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ruut/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000
debug1: Authenticating to ip_of_server:22 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: diffie-hellman-group-exchange-sha256
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: umac-64@openssh.com compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: umac-64@openssh.com compression: none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(2048<3072<8192) sent
debug1: got SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: got SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: ssh-rsa SHA256:s3z1TtniRQyx1X8ttot06w5e5Qz7ZQRtjSmnNyjB77A
debug1: Host 'ip_of_server' is known and matches the RSA host key.
debug1: Found key in /home/ruut/.ssh/known_hosts:2
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available

debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available

debug1: Unspecified GSS failure.  Minor code may provide more information


debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available

debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/ruut/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /home/ruut/.ssh/id_dsa
debug1: Trying private key: /home/ruut/.ssh/id_ecdsa
debug1: Trying private key: /home/ruut/.ssh/id_ed25519
debug1: Next authentication method: password
git@ip_of_server's password: 
]debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
git@ip_of_server's password: 
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
git@ip_of_server's password: 
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).


На сервере: CentOS и гит версии - 1.7.1
У меня: ubuntu 16.04, гит - 2.7.4

Подскажите пожалуйста в чем проблема?
  • Вопрос задан
  • 3044 просмотра
Пригласить эксперта
Ответы на вопрос 1
Krasnodar_etc
@Krasnodar_etc
fundraiseup
На Гитхабе (или любом другом удалённом хранилище) ключ-то дабавили в аккаунт?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы