我试图设置基于密钥的ssh访问Fedora 25框。 我已经在许多Ubuntu服务器上做了这个没有问题。 我得到Permission denied (gssapi-keyex,gssapi-with-mic,password).
这是我的build立过程:
我在详细模式下运行sshd。 但是,我无法解释输出。 我认为这是相关的一点:
debug1: SELinux support enabled [preauth] debug1: ssh_selinux_change_context: setting context from 'unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023' to 'unconfined_u:unconfined_r:sshd_net_t:s0-s0:c0.c1023' [preauth] debug3: ssh_selinux_change_context: setcon unconfined_u:unconfined_r:sshd_net_t:s0-s0:c0.c1023 from unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 failed with Invalid argument [preauth]
SELinux是我的问题吗? 其他地方我应该看看?
编辑
这里是一个链接要求的结果ssh -vvv: https ://gist.github.com/RogerCreasy/527d7520ce356074f4737ced51fb886d
而且,通过sshd_config链接到要点: https : //gist.github.com/RogerCreasy/1105333c869a08193754410679e81335
附加日志中不使用公钥authentication。
不能在客户端configuration中禁用公钥authentication,或者authentication方法的优先级不能使用publickeyauthentication?
/var/log/messages显示什么? 如何从客户端运行ssh -vvv <ip-address>
如何使用这些命令 :创build密钥。
ssh-keygen -t rsa
将密钥复制到服务器
ssh-copy-id user@onthmachineyouwanttoconnect