开发者社区> 问答> 正文

windows 用 ssh 连接 服务器找不到密钥?报错

ssh -T git@gitlab.xdao.me
测试ssh 连接 服务器报错:

$ ssh -T git@gitlab.xdao.me
The authenticity of host 'gitlab.xdao.me (192.168.1.77)' can't be established.
RSA key fingerprint is 22:3f🇪🇨f6:d9:9b:98:35:4b:17:16:b0:e4:3f:38:0d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitlab.xdao.me,192.168.1.77' (RSA) to the list of kn
own hosts.
git@gitlab.xdao.me's password:
Permission denied, please try again.
git@gitlab.xdao.me's password:
Permission denied, please try again.
git@gitlab.xdao.me's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).



将 ~/.ssh 目录删除掉后也是一样的错误。

展开
收起
爱吃鱼的程序员 2020-06-20 16:58:51 924 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    在将公钥粘贴到服务器SSHKEYS<spanstyle="font-size:10pt;line-height:1.5;">上的时候注意删除后面的多于空格和回车,实在不行多删除几个字母再手动打上。试试。还是不行,我已经放弃ssh,改用http了.楼主问你个问题,我在ubuntu14上安装完了7.1gitlab后,用hostname方式访问不了,但是能用http://localhost方式访问,不知到怎么回事?nginx和*/gitlab/config.yml等地方需要配置域名.

    2020-06-20 16:59:07
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
《云服务器运维之Windows篇》 立即下载
TAKING WINDOWS 10 KERNEL 立即下载
ECS运维指南之Windows系统诊断 立即下载