I am trying to set up key-based ssh access to a Fedora 25 box. I have done this on many Ubuntu servers with no issues. I get Permission denied (gssapi-keyex,gssapi-with-mic,password).
Here is my set up process:
- (server) create /home/[user]/.ssh
- (local) copy key.pub to remote /home/[user]/.ssh/authorized_keys
- (server) chmod 700 /home/[user]/.ssh
- (server) chmod 600 /home/[user]/.ssh/authorized_keys
- (server) chown -R [user]:[user] /home/[user]/.ssh/
I ran sshd in verbose mode. But, I cannot interpret the output. I think this is the pertinent bit:
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]
Is something in SELinux my problem? Other places I should look?
EDIT
Here is a link to gist with the results of ssh -vvv: https://gist.github.com/RogerCreasy/527d7520ce356074f4737ced51fb886d
And, a link to a gist with sshd_config: https://gist.github.com/RogerCreasy/1105333c869a08193754410679e81335
The public key authentication is not used in the attached log.
Can't be the public key authentication disabled in client configuration or priorities of authentication methods modified that the
publickey
authentication is not used?What does
/var/log/messages
show? How about when you run from the clientssh -vvv <ip-address>
How about using these commands: To create the keys.
to copy the keys to server