774 Star 1.5K Fork 351

开源中国 / Gitee Feedback

 / 详情

ssh公钥配置后还是需要输入用户名密码

结束任务
Task
创建于  
2018-12-12 22:06

任务描述

已尝试多次删除公钥并重新生成,无效。

解决方案

任务来源

评论 (3)

MarkTan 创建了任务

@江二十三 这个是查看的命令?SSH和HTTP都尝试过切换,还是无效。
$ ssh -vT git@gitee.com
OpenSSH_7.7p1, OpenSSL 1.0.2p 14 Aug 2018
debug1: Reading configuration data /c/Users/XJ-NoteBoot-006/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to gitee.com [120.55.226.24] port 22.
debug1: Connection established.
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_ed25519-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_xmss type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XJ-NoteBoot-006/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.7
debug1: Remote protocol version 2.0, remote software version Basalt-1.2
debug1: no match: Basalt-1.2
debug1: Authenticating to gitee.com:22 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc
debug1: Host 'gitee.com' is known and matches the ECDSA host key.
debug1: Found key in /c/Users/XJ-NoteBoot-006/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,rsa-sha2-512,rsa-sha2-256,ssh-dss>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:7mk02WZe719ATb2HPsHoehspMyeMuxuJj9ZOAFf+Rjw /c/Users/XJ-NoteBoot-006/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to gitee.com ([120.55.226.24]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
Hi MarkTan! You've successfully authenticated, but GITEE.COM does not provide shell access.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2688, received 1804 bytes, in 0.2 seconds
Bytes per second: sent 13113.3, received 8800.7
debug1: Exit status 0

不知道什么时候好了。有人能告诉原因就好了。

MarkTan 任务状态待办的 修改为已完成
诺墨 任务状态已完成 修改为已验收
诺墨 将工作项从 任务 迁移到 Task
诺墨 任务类型任务 修改为Task
诺墨 任务状态已验收 修改为结束任务

登录 后才可以发表评论

状态
负责人
项目
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
1034 ipvb 1623743928
Ruby
1
https://gitee.com/oschina/git-osc.git
git@gitee.com:oschina/git-osc.git
oschina
git-osc
Gitee Feedback

搜索帮助