栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

gitlab添加密钥后,git clone仍提示输入密码

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

gitlab添加密钥后,git clone仍提示输入密码

先使用命令调试ssh连接是否成功$ ssh -vvvT git@hdss7-100.host.com

debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Offering public key: /c/Users/weidi/.ssh/id_rsa RSA SHA256:+B7XNfMXp2z7htcFP8cI0Cz6HhvvU4jUmajoDKDjzS0
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /c/Users/weidi/.ssh/id_dsa
debug3: no such identity: /c/Users/weidi/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /c/Users/weidi/.ssh/id_ecdsa
debug3: no such identity: /c/Users/weidi/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /c/Users/weidi/.ssh/id_ecdsa_sk
debug3: no such identity: /c/Users/weidi/.ssh/id_ecdsa_sk: No such file or directory
debug1: Trying private key: /c/Users/weidi/.ssh/id_ed25519
debug3: no such identity: /c/Users/weidi/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /c/Users/weidi/.ssh/id_ed25519_sk
debug3: no such identity: /c/Users/weidi/.ssh/id_ed25519_sk: No such file or directory
debug1: Trying private key: /c/Users/weidi/.ssh/id_xmss
debug3: no such identity: /c/Users/weidi/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
git@hdss7-100.host.com's password:

出现以上报错
debug3: no such identity: /c/Users/weidi/.ssh/id_dsa: No such file or directory
但是我已经生成了这个文件的。

.ssh文件夹权限均是正确的。
经查是因为服务器seLinux设置问题,将远程服务器的seLinux设置为disabled关闭

[root@localhost ~]# vi /etc/selinux/config
SELINUX=disabled

然后重启机器使其生效。再使用git clone就成功了。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/467746.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号