首先连接使用的协议是 ssh
ssh -v ipbbs@localhost
这里假设已经连接, 切换到ipbbs 用户, 看一下ssh 的连接过程。
发现 最后几行有 not find
ebug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information Credentials cache file '/tmp/krb5cc_0' not found debug1: Unspecified GSS failure. Minor code may provide more information Credentials cache file '/tmp/krb5cc_0' not found debug1: Unspecified GSS failure. Minor code may provide more information debug1: Unspecified GSS failure. Minor code may provide more information Credentials cache file '/tmp/krb5cc_0' not found debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/identity debug1: Trying private key: /root/.ssh/id_rsa debug1: Trying private key: /root/.ssh/id_dsa debug1: Trying private key: /root/.ssh/id_ecdsa debug1: Next authentication method: password
GSS -- 一种安全的机制
直接通过配置文件屏蔽即可
vim /etc/ssh/ssh_config # 中 GSSAPIAuthentication no # 默认是 yes # !!! 同样修改 sshd_config 中的值
重启启动
service sshd restart
ipbbs.net
离线