在客户端执行ssh依然报错:
Shell代码  selinue引起的ssh连接错误
  1. Permission denied (publickey,gssapi-keyex,gssapi-with-mic).  


在这个页面不小心看到了原因:
http://serverfault.com/questions/230771/ssh-configuration-publickeys-permission-denied-publickey-password-error
又是TM的SELinux惹的祸,关闭SELinux解决问题:
暂时关闭(重启后恢复):
Shell代码  selinue引起的ssh连接错误
  1. setenforce 0  

永久关闭(需要重启):
Shell代码  selinue引起的ssh连接错误
  1. vi /etc/selinux/config  
  2. SELINUX=disabled 

相关文章:

  • 2021-11-11
  • 2022-12-23
  • 2021-09-25
  • 2021-06-29
  • 2022-01-27
  • 2022-12-23
猜你喜欢
  • 2021-06-09
  • 2021-09-28
  • 2022-12-23
  • 2021-08-04
  • 2021-09-22
  • 2021-08-02
  • 2022-12-23
相关资源
相似解决方案