`
aben328
  • 浏览: 1460466 次
  • 性别: Icon_minigender_1
  • 来自: 广东
社区版块
存档分类

linux中ssh登录Permanently added (RSA) to the list of known hosts问题解决 作者:太平裂碑 发布:2

    博客分类:
  • SVN
阅读更多

 

linux中ssh登录Permanently added (RSA) to the list of known hosts问题解决

用用户名+密码的方式登录出现以下问题:

1 [root@www]# ssh admin@xxx.xxx.xxx.xxx
2 The authenticity of host 'xxx.xxx.xxx.xxx can't be established.
3 RSA key fingerprint is f4:d0:1a:9c:09:65:78:71:25:33:79:c2:d5:aa:0b:c1.
4 Are you sure you want to continue connecting (yes/no)? no
5 Host key verification failed.
6 [root@www]#

如果是直接输入yes

1 [root@www]# ssh admin@xxx.xxx.xxx.xx
2 The authenticity of host 'xxx.xxx.xxx.xxx' can't be established.
3 RSA key fingerprint is f4:d0:1a:9c:09:65:78:71:25:33:79:c2:d5:aa:0b:c1.
4 Are you sure you want to continue connecting (yes/no)? yes
5 Warning: Permanently added 'xxx.xxx.xxx.xxx' (RSA) to the list of known hosts.
6 Permission denied (publickey,gssapi-with-mic,password).
7 [root@www]#

一、可以把~/.ssh/known_hosts清除
二、如果还是不行
修改/etc/ssh/sshd-config文件,将其中的PermitRootLogin no修改为yes,PubkeyAuthentication yes修改为no,AuthorizedKeysFile .ssh/authorized_keys前面加上#屏蔽掉,PasswordAuthentication no修改为yes就可以了。
三、如果还是有问题,那颗一用下面的方式解决:
用命令 ssh -l username hostname

1 Are you sure you want to continue connecting (yes/no)?

1、这个是ssh安全认证是的一个RSA认证。此处必须选择yes才能连接。
第一次yes后,他会询问你是否永久把这个RSA认证加入本地,选择yes后,以后不会再出现提醒。
每次登陆只需要输入密码即可。

2、也可以不用输入1中的yes,但是需要修改本机配置。

1     /etc/ssh/ssh_config 中的
2 #  StrictHostKeyChecking ask 改成
3    StrictHostKeyChecking no

这样多此一举的询问就不在了。

分享到:
评论

相关推荐

    Ansible报错解决方法...added 'IP' (ECDSA) to the list of known hosts

    在使用Ansible自动化运维工具时,可能会遇到各种错误情况,其中一种常见的报错是"Permanently added 'IP' (ECDSA) to the list of known hosts"。这个错误信息是由于SSH安全策略导致的,当Ansible尝试连接到一个新的...

    oracle asm rac

    /dev/sdb2 1909 3816 1953792 83 Linux /dev/sdb3 3817 5724 1953792 83 Linux /dev/sdb4 5725 20480 15110144 5 Extended /dev/sdb5 5725 7632 1953776 83 Linux /dev/sdb6 7633 9540 1953776 83 Linux /dev/sdb7 ...

    linux搭建git服务器

    Warning: Permanently added '192.168.56.101' (RSA) to the list of known hosts. ``` - 此时会在客户端用户的`.ssh`目录下生成`known_hosts`文件。 #### 五、SSH公钥验证配置 1. **客户端创建SSH密钥对:** ...

    AWS亚马逊ssh登录失败 Permissions 0644 for .pem are too open

    说明 AWS亚马逊ssh登录失败 Permissions...Warning: Permanently added 'yourAwsAddress.compute.amazonaws.com,00.00.00.00' (ECDSA) to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    nubo:从命令行在不同的云提供商上部署 Linux VM

    Public IP: 54.247.8.150然后在其上安装 puppet: $ ssh root@54.247.8.150 "apt-get -y install puppet"Warning: Permanently added '54.247.8.150' (RSA) to the list of known hosts.Reading pac

    VMware vsan+ 故障查询+信息状态查询

    Warning: Permanently added '192.168.11.75' (vim) to the list of known hosts Welcome to RVC. Try the 'help' command. 0 /1 192.168.11.75/>> ``` #### 三、RVC常用命令 1. **基本命令** - `cd`:用于...

    NGUI Next-Gen UI 3.0.7 f1.unitypackage

    - NEW: Added the ability to copy/paste all values of the sprites and labels via right-click on the component. - NEW: Added a "next page threshold" value to UICenterOnChild for when you want to swipe ...

    Design Exploration of Emerging Nano-scale Non-volatile Memory

    The analysis of big data at exascale (1018 bytes or flops) has introduced the emerging need to reexamine the existing hardware platform that can support intensive dataoriented computing. A big-data-...

    servlet2.4doc

    Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. doFilter(ServletRequest, ...

    AVG 破解版

    2. The Licensor shall be entitled to cancel the temporally unlimited transfer of the right of use of the software freeware version without giving reasons. The freeware version shall only and ...

    polycom宝利通视频会议软件3.9 2018

    Subject to the terms of this Laboratory and Developer License, POLYCOM grants you a limited, non-exclusive, non-transferable license to install and use, on a DEVICE, the number and type of SOFTWARE ...

    word自动转化为chm

    The format and style are kept and the topic tree is created according to the outline of the Word file in the CHM file created by Word-2-CHM. The command line of Word-2-CHM can be used to generate CHM...

    APF thesis.rar_APF sliding mode_active filter_fuzzy_grid energy_

    In the first stage, the photovoltaic generator is connected to a boost DC-DC converter, acting through two MPPT algorithms, based on fuzzy logic and sliding mode control, to track permanently the ...

    最牛比的css菜单生成工具(收藏)-不下后悔一辈子

    2: Click the 'Advanced' tab. 3: Check the 2nd option under 'Security' in the tree (Allow active content to run in files on my computer.) ---Menus and Flash Objects--- Overview- Flash ...

    SAA-CO1.462Q.AWS-SAA(英).pdf

    Permanently keep a steady state of instances that is needed at 9:00 AM to guarantee available resources, but leverage Spot Instances. Answer: B 为了解决这个问题,可以创建一个 Auto Scaling 计划操作...

    TeeChart2013_131216_SourceCode

    Subject to the terms and conditions of this EULA, the Licenses are perpetual. Updates and upgrades to the SOFTWARE may be provided by Steema at their discretion at timely intervals though Steema...

    TeeChart2013_130818_SourceCode

    Subject to the terms and conditions of this EULA, the Licenses are perpetual. Updates and upgrades to the SOFTWARE may be provided by Steema at their discretion at timely intervals though Steema...

    tModLoader.Windows.v0.11.6.2.7z

    If that file launches tModLoader or you wish to permanently revery to un-modded Terraria, you need to use steam to "verify game integrity" which will restore the files back to the un-modded Terraria....

    Permanently Delete a File

    通常,当我们从操作系统中删除一个文件时,它并不会立即从硬盘上消失,而是被标记为可重写的空间,这意味着只要没有新的数据覆盖,文件的数据依然存在,可以通过一些数据恢复工具找回。因此,"永久删除文件"主要是指...

Global site tag (gtag.js) - Google Analytics