Git ssh认证问题

时间:2018-03-13 10:18:24

标签: git ssh cygwin openssh

我有git authentification的问题。 配置是

Host host.com 
User myuser
RSAAuthentication yes
IdentityFile ~/.ssh/id_rsa.pub

使用

生成ssh rsa文件
ssh-keygen -t rsa

pub文件被复制到服务器

git服务器问我密码短语 - 它是空的

debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: ~/.ssh/id_rsa.pub
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug2: input_userauth_pk_ok: fp SHA256:AP3XfSyCKl/bvQCOxyg2JyNHSKME53YENRbWY1c+D4w
Enter passphrase for key '/c/Users/ESZaytseva/.ssh/id_rsa.pub':
debug2: no passphrase given, try next key
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,password).
fatal: Could not read from remote repository.

请确保您拥有正确的访问权限 存储库存在。

0 个答案:

没有答案