Red Hat Bugzilla – Bug 597621
openssh default config AuthorizedKeysFile entry considers home directory to be "/"
Last modified: 2010-05-29 18:49:05 EDT
Description of problem:
Upon installation of openssh-server, I modified the configuration to allow authentication via public key file. The default AuthorizedKeysFile entry reads:
This worked fine in FC12 x86, but in FC13 x86_64 (clean install, not upgrade), this does not work. When password and all other authentication methods are disabled, and running sshd -d on an alternate port, I see the following on the server end when attempting to connect from a client with pubkeys:
debug1: trying public key file //.ssh/authorized_keys
After commenting the AuthorizedKeysFile entry in my sshd_config file, and restarting sshd, I am able to connect with no problem with pubkeys.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set PasswordAuthentication no
2. Set RSAAuthentication yes
3. Set AuthorizedKeysFile .ssh/authorized_keys
4. sshd -p (insert random port number here) -d
5. Allow inbound connections on said port number in firewall (and SELinux if needed)
6. Connect from remote host with pubkeys and immediately receive disconnect
7. Check in the window where sshd was run manually and see the debug1 line pasted above among other lines in the output.
No supported authentication methods available
Connect and able to use ssh
Duplicate of bug #595935 ?
Yes, marking as dup
*** This bug has been marked as a duplicate of bug 595935 ***