ssh localhost时提示:Please contact your system administrator. Add correct host key in /home/hadoop/.ss

ssh localhost时提示:Please contact your system administrator. Add correct host key in /home/hadoop/.ss_第1张图片

如上图所示:

可以把/home/hadoop/.ssh/known_hosts文件删了,然后重新生成配对密钥即可

  1. # sudo apt-get openssh-server
  2. # ssh-keygen -t rsa -P ""
  3. # cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys

你可能感兴趣的:(ssh localhost时提示:Please contact your system administrator. Add correct host key in /home/hadoop/.ss)