首页 > 其他分享 >不能成功配置ssh信任,提示Agent admitted failure to sign using the key.

不能成功配置ssh信任,提示Agent admitted failure to sign using the key.

时间:2023-06-25 14:32:47浏览次数:46  
标签:Agent admitted sign failure grid ssh db02 id


不能成功配置ssh信任,提示Agent admitted failure to sign using the key.


问题现象:
     做完信任之后要需要输密码:

[grid@db01 .ssh]$ ssh db02
Agent admitted failure to sign using the key.
grid@db02's password:



原因:


      GNOME 用户会在尝试通过 SSH 连接到 GCE 时偶尔会看到 "Agent admitted failure to sign using the key" 信息。这是由尝试使用错误 SSH 密钥的 GNOME 密钥环管理造成,



解决办法:

启用ssh-agent:
[grid@db02 ~]$ eval `ssh-agent`
Agent pid 6078
   使用 ssh-add 指令将私钥 加进来 (根据个人的密匙命名不同更改 id_rsa)
[grid@db02 ~]$ ssh-add  ~/.ssh/id_rsa
Identity added: /home/grid/.ssh/id_rsa (/home/grid/.ssh/id_rsa)



总结:

让ssh-agent能转发,这样就可以这样登陆了:


标签:Agent,admitted,sign,failure,grid,ssh,db02,id
From: https://blog.51cto.com/prudentwoo/6545735

相关文章

  • zabbix(2-server-agent)
    注意:以下步骤都是在LAMP配置之后进行的。关于LAMP环境的简单快速搭建,见博客:http://afterdawn.blog.51cto.com/7503144/1923139下面开始介绍在CentOS7上安装部署Zabbix3.0版本及快速进行基本配置,本次案例要用到两台主机,一台作为zabbix_server端,一台作为zabbix_agent端,具体信息如下:za......
  • 安卓装包失败提示 Package xxx could not be assigned a valid UID解决方案
    1.因为新装包规则是总当前uid往后分配,所以我要找到uid最大的几个应用 cat/data/system/packages.list|awk'{print$2}'|sort-n 2.根据查到的uid分别找出对应包名去卸载cat/data/system/packages.list|grep查询到的uid  awk'{print$1,$2}' 3.......
  • 小试Blazor——实现Ant Design Blazor动态表单
    前言最近想了解下Blazor,于是尝试使用Blazor写一个简单的低代码框架,于是就采用了AntDesignBlazor作为组件库低代码框架在表现层的第一步则是动态表单,需要将设计时的结构渲染成运行时的表单,本次主要实现动态表单,相关数据接口都以返回固定数据的形式实现实现1.项目准备先通过......
  • PANDACU: second hand luxury bag and wallet bags designer used leather branded ba
    PANDACUisareputablewholesalesupplierspecializinginsecond-handluxurybagsandwallets.Theyofferawideselectionofdesignerusedleatherbags,includingbrandedoptions.Withafocusonprovidinghigh-qualityproducts,PANDACUcaterstoretaile......
  • pycharm中的gihub copilot中报错Sign in failed. Reason: Request signInInitiate fai
    pycharm中的gihubcopilot中报错Signinfailed.Reason:RequestsignInInitiatefailedwithmessage:getaddri无法使用问题解决方法:idea打开我们的插件settings-plugins-找到插件,点击homepage插件主页跳出的页面下载对应pycharm的github copilot版本安装问题解决......
  • orchestrator 中的 agent
    目录orchestrator-agent参考Orchestrator是一个开源的MySQL高可用性解决方案,它可以自动化执行MySQL故障转移、主从切换、数据中心迁移等操作,同时提供了一个Web界面和API接口,方便运维人员进行MySQL集群管理和监控。在Orchestrator常用功能中,很少提及agent,实际上,Orchestrator也......
  • VSCode 配置 PyQt5 Designer
    安装扩展VSCode安装PYQTIntegration扩展。在线地址:VisualStudioMarketplace-PYQTIntegration。安装之后,点击扩展进行设置。设置扩展Pyuic找到pyuic路径,我的路径是:E:\DevTools\anaconda3\envs\pyqt5\Scripts\pyuic5。Qtdesigner找到Qtdesigner路径,我的路径......
  • 什么是 SAP Business ByDesign 里的 TREX
    TREX(TextRetrievalandInformationExtraction)在SAPBusinessByDesign中是一个强大的搜索和分析引擎,专门用于处理大量的结构化和非结构化数据。它是SAP的全文搜索引擎,提供高效的文本搜索、信息提取和分析功能。TREX的应用范围广泛,下面将详细说明其在SAPBusinessByD......
  • SystemVerilog for Design Edition 2 Chapter 10
    SystemVerilogforDesignEdition2Chapter10SystemVerilogextendstheVeriloglanguagewithapowerfulinterfaceconstruct.Interfacesofferanewparadigmformodelingabstraction.Theuseofinterfacescansimplifythetaskofmodelingandverifying......
  • 【React工作记录一百一十八】hook+ant design实现列表的增加和修改(弹出框)
    前言大家好我是歌谣列表页面的新增和编辑是日常开发中遇到比较多的问题如何控制一个页面实现页面的新增和编辑效果演示分析对于以上的页面先渲染出结构<Formname="menu"form={form}labelCol={{sm:......