ssh localhost的时候遇到:

ubuntu@VM-0-15-ubuntu:~/taoge/hadoop_begin/hadoop-2.7.5$ ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.

怎么办?

ubuntu@VM-0-15-ubuntu:~/.ssh$ chmod 777 /etc/ssh/ssh_config

然后在这个文件的最后两行加上:

    StrictHostKeyChecking noUserKnownHostsFile /dev/null

如下:

ubuntu@VM-0-15-ubuntu:~$ tail /etc/ssh/ssh_config
#   PermitLocalCommand no
#   VisualHostKey no
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
#   RekeyLimit 1G 1hSendEnv LANG LC_*HashKnownHosts yesGSSAPIAuthentication yesGSSAPIDelegateCredentials noStrictHostKeyChecking noUserKnownHostsFile /dev/null
ubuntu@VM-0-15-ubuntu:~$ 

于是乎:

ubuntu@VM-0-15-ubuntu:~$ ssh localhost
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.

搞定。 后面的问题一路顺畅。

The authenticity of host 'localhost (127.0.0.1)' can't be established的处理方法相关推荐

  1. postgresql数据库无法连接,提示 Is the server running on host localhost (127.0.0.1) and accepting TCP/IP conn

    postgresql数据库无法连接,提示 Is the server running on host "localhost" (127.0.0.1) and accepting T ...

  2. ssh登录The authenticity of host localhost can‘t be established.错误

    当我们设置ssh免登录云服务器时出现以下报错: The authenticity of host 'localhost (::1)' can't be established. RSA key fin ...

  3. The authenticity of host ‘master (192.168.80.5)‘ can‘t be established.

    在Hadoop平台搭建过程中,已经生成了公钥和私钥.但是启动start-dfs.sh时出现以下: [root@master sbin]# start-dfs.sh Starting namenodes ...

  4. 启动hadoop时,免密码登录引发的错误:“The authenticity of host ‘node01 (192.168.1.8)‘ can‘t be established.”

    The authenticity of host 'node01 (192.168.1.8)' can't be established. 详细报错: [root@node01 hadoop-2.7. ...

  5. Is the server running on host “localhost“ (127.0.0.1) and accepting TCP/IP connections on port 5432?

    5432数据库服务启动 cd D: cd '.\Program Files\' cd .\PostgreSQL\ cd 10 cd bin .\pg_ctl.exe start -D ..\data

  6. 三十七、The authenticity of host ‘slave1 (192.168.231.106)‘ can‘t be established.

    问题描述: 今日使用scp命令,发现警告: 译文为:无法确定主机"slave1 (192.168.231.106)"的真实性. ECDSA 密钥指纹是 SHA256:uem/yiY ...

  7. JAVA大数据的第五十九天——The authenticity of host ‘gree129 (192.168.**.129)‘ can‘t be established.

    在搭建hadoop高可通集群,启动yarn的时候遇到问题 [root@gree131 hadoop]# start-yarn.sh starting yarn daemons starting res ...

  8. CentOS 7安装Hadoop 3.0.0

    最近在学习大数据,需要安装Hadoop,自己弄了好久,最后终于弄好了.网上也有很多文章关于安装Hadoop的,但总会遇到一些问题,所以把在CentOS 7安装Hadoop 3.0.0的整个过程记录下来 ...

  9. Is the server running on host localhost (::1) and accepting         TCP/IP connections on port 5

    完整报错如下: django.db.utils.OperationalError: could not connect to server: Connection refused         Is ...

最新文章

  1. Disruptor源码解析 + 实战
  2. 地图检索 – 与众不同
  3. 在wine里安装了IE6
  4. win10电脑黑屏只有鼠标箭头_电脑黑屏后屏幕只有鼠标怎么办呢?
  5. 杜教筛--51nod1239 欧拉函数之和
  6. Flutter 底部向上弹出的动画按钮
  7. Java 数组的拷贝(复制一个相同数组)
  8. pycharm pyqt5实现登陆界面_PyQt5可以实现界面和逻辑代码分离吗?大声说出你的答案!...
  9. pfSesne 使用IPv6与隧道代理
  10. 聚合影视源码搭建教程
  11. 如何做好新媒体软文营销推广
  12. HDU 5755 Gambler Bo(数论)
  13. 《杜拉拉升职记》——值得一读的一本好书
  14. 戴尔g7 linux,颜值高性能强大 戴尔G7游戏本评测详解
  15. 找工作收到多个 Offer,我该怎么办?
  16. java实现i18n国际化
  17. C/C++超市收银系统
  18. iOS 的UIView 的hitTest的分析
  19. LeetCode:167. 两数之和 II - 输入有序数组(java)
  20. 《码农翻身》读后感第二天

热门文章

  1. Linux SSH命令大全
  2. 【3】Ubuntu18.04下载与安装,以及中文输入法的安装
  3. python之NetworkX的使用
  4. linux在线ipa签名,利用Cydia Impactor免越狱安装未签名APP教程 | ZMMOO
  5. Semantic UI 之 图标 icon
  6. python 协程库gevent学习--源码学习(一)
  7. SQL 查询语句 IIF()处理条件判断
  8. 小白兔卖菜是计算机作文,白兔的菜作文
  9. MODBUS通讯协议解析及实例
  10. 最新Kafka教程(包含kafka部署与基本操作、java连接kafka、spring连接kafka以及使用springboot)