Issues with SSH key authentication

General support questions
Post Reply
phil.e
Posts: 97
Joined: 2018/02/13 20:28:14

Issues with SSH key authentication

Post by phil.e » 2018/09/25 17:02:10

Hello,

This should be a simple issue, but I'm missing something somewhere.
Here goes ..
I had SSH keys configured for logging into a bunch of CentOS 6 workstations, so I could do passwordless logins. Our home drives are on a network share, so known_hosts is in /share/username/.ssh, and the same folders should be accessible from anywhere.
I upgraded several workstations, including my own, to CentOS 7. I can still use the SSH keys for all of the CentOS 6 workstations, but get prompted for a password for all of the CentOS 7 workstations, even after running "ssh-copy-id" again.
What do I need to do to get the ssh key authentication working again?
I should add the workstations keep the same hostname and IP address when they get the CentOS 7 upgrade.
Thanks,
Phil

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Issues with SSH key authentication

Post by TrevorH » 2018/09/25 18:45:48

Look in /var/log/secure on the server - that's where it logs errors during ssh logins.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply