`
aben328
  • 浏览: 1451344 次
  • 性别: 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

    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 ...

    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

    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 ...

    Permanently Delete a File

    Permanently Delete a File

    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....

    WinRAR_3.71_英文破解版

    The licensed RAR software may not be rented or leased, but may be permanently transferred, in it's entirety, if the person receiving it agrees to the terms of this license. If the software is an ...

    Linux Kernel Hackers' Guide.pdf

    Linux Kernel Hackers' Guide Due to the fact that nearly every post to this site recently has been either by rude cracker- wannabes asking how to break into other people's systems or a request for ...

    system mechanic Activator v1.0

    08. Permanently block any attempt of SysMech to connect to internet. 09. Check and configure your other System Mechanic settings. 10. Do NOT update System Mechanic! Important notes: *************...

    Expert .NET Micro Framework

    It begins with the basics of accessing hardware and networking before delving deep into the less well–known areas such as cryptography and globalization, and how to use technologies such as wireless...

Global site tag (gtag.js) - Google Analytics