开发者社区> 问答> 正文

关于oschina的git配置问题:配置报错 

windows平台 msysgit版本为1.9.x,配置git@git.oschina.net 出现如下错误,
之前步骤都是好的,以下是调试输出的信息
$ ssh -vT git@git.oschina.net OpenSSH_6.6.1, OpenSSL 1.0.1i 6 Aug 2014

debug1: Reading configuration data /c/Users/Administrator/.ssh/config

debug1: Connecting to git.oschina.net [124.202.141.153] port 22.

debug1: Connection established.

debug1: identity file /c/Users/Administrator/.ssh/id_rsa type 1

debug1: identity file /c/Users/Administrator/.ssh/id_rsa-cert type -1

debug1: identity file /c/Users/Administrator/.ssh/id_dsa type -1

debug1: identity file /c/Users/Administrator/.ssh/id_dsa-cert type -1

debug1: identity file /c/Users/Administrator/.ssh/id_ecdsa type -1

debug1: identity file /c/Users/Administrator/.ssh/id_ecdsa-cert type -1

debug1: identity file /c/Users/Administrator/.ssh/id_ed25519 type -1

debug1: identity file /c/Users/Administrator/.ssh/id_ed25519-cert type -1

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_6.6.1

debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2

debug1: match: OpenSSH_6.2 pat OpenSSH* compat 0x04000000

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none

debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none

debug1: sending SSH2_MSG_KEX_ECDH_INIT

debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

debug1: Server host key: ECDSA 27:e5:d3:f7:2a:9e:eb:6c:931f:c1:47:a3:54:b1

debug1: Host 'git.oschina.net' is known and matches the ECDSA host key.

debug1: Found key in /c/Users/Administrator/.ssh/known_hosts:6

debug1: ssh_ecdsa_verify: signature correct

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: SSH2_MSG_NEWKEYS received

debug1: Roaming not allowed by server

debug1: SSH2_MSG_SERVICE_REQUEST sent

debug1: SSH2_MSG_SERVICE_ACCEPT received

debug1: Authentications that can continue: publickey,password,keyboard-interacti

ve

debug1: Next authentication method: publickey

debug1: Offering RSA public key: /c/Users/Administrator/.ssh/id_rsa

debug1: Authentications that can continue: publickey,password,keyboard-interacti

ve

debug1: Trying private key: /c/Users/Administrator/.ssh/id_dsa

debug1: Trying private key: /c/Users/Administrator/.ssh/id_ecdsa

debug1: Trying private key: /c/Users/Administrator/.ssh/id_ed25519

debug1: Next authentication method: keyboard-interactive

debug1: Authentications that can continue: publickey,password,keyboard-interacti

ve

debug1: Next authentication method: password

git@git.oschina.net's password:

展开
收起
kun坤 2020-06-02 16:43:47 723 0
1 条回答
写回答
取消 提交回答
  • # start the ssh-agent in the background
    eval "$(ssh-agent -s)"
    # Agent pid 59566
    ssh-add
    # Enter passphrase for /home/you/.ssh/id_rsa: [tippy tap]
    # Identity added: /home/you/.ssh/id_rsa (/home/you/.ssh/id_rsa)

    参考:我的博客  ssh链接git服务器,解决Agent admitted failure to sign using 
    http://my.oschina.net/lieefu/blog/469337 ###### 你的公钥配置的有问题,导致它用公钥认证失败,最后还是等待用密码来认证 ######回复 @toby520 :从后面慢慢删除空格######@岁月无痕 好像是多了很多空白 那要如何复制过去呢?######回复 @toby520 : https://git.oschina.net/oschina/git-osc/wikis/%E5%B8%AE%E5%8A%A9#ssh-keys######回复 @toby520 : 把公钥复制到git@osc去的时候,最后是不是多了空格或者空白?######公钥 都是按照教程进行配置的啊,有特别详细的教程吗?我觉得可能是版本高了的问题吧######你提交的公钥格式可能有问题。你是如何显示又复制粘贴过去的?

    2020-06-02 16:43:56
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
新一代高效Git协同模型 立即下载
AGit-Flow:新一代高效Git协同模型 立即下载
AGit-flow:新一代高效Git协同模型 立即下载

相关实验场景

更多