I'm having trouble gaining SSH access to my new server. I currently have one server set up working the way I want it to, and I'm trying to get a different one to work the same way. I've copied my users files (/etc/passwd, /etc/shadow, /etc/group, and /etc/gshadow) and the /home folders (including /home/*/.ssh). I even added a new user (testuser) on the new machine and am using that to test the ssh settings. Both /etc/ssh/sshd_config and /etc/ssh/ssh_config are the same, as are the iptables rules.
When I try to use PuTTY to log in to the new server using a copy of the settings from the old server (except for address, of course) I get an error:
Disconnected: No supported authentication methods available
And in the /var/log/secure file I get the line:
sshd[6562]: Received disconnect from xxx.xxx.xxx.xxx: 14: No supported authentication methods available
Both old and new server are running centOS
Where else can I find configurations that might be off?
Thanks.
Doesn't look like a firewall/ipteables issue. More likely you have either broken your passwd/shadow config (perhaps the new machine uses a different password hashing) or ssh is configured to allow key authentication only, not password.
Maybe PAM authentication settings differ? Look in
/etc/pam.d/
and/etc/security/
.