Trouble SSHing from RHEL6 to RHEL9: Any Solutions?

April 30, 2025 5 answers
Asked by tea.with.lemon
I'm migrating some servers from RHEL6 to RHEL9, but I've hit a wall with SSH. It seems that RHEL9 doesn't accept SHA-1 or RSA keys anymore, and the OpenSSH versions are really different, making it impossible for my keys to work together. I'm looking for alternatives to using a jump box or lowering RHEL9's security settings with legacy options. Anyone have suggestions? Also, I'm trying to transfer a 2 TB database from my RHEL6 server to RHEL9, so I need a solution that works reliably.

Answers

ant colony watch
Consider adjusting the configuration on RHEL9 to allow deprecated keys temporarily for the migration. You can document this change and roll it back once you're done. It might be a smoother way to handle the transition.
Reply to this answer
uphill skier
Have you thought about compiling the latest versions of OpenSSH on your RHEL6 server? There are resources on Stack Overflow that could guide you through that process. It might solve the compatibility issue. Can you clarify what you need, though? Itโ€™s a bit unclear from your post.
Reply to this answer
echo_chamber_test
Are you trying to rsync or sftp the files from RHEL6? If possible, it might be worth rebuilding your server directly on RHEL9 and migrating the data afterward. Iโ€™m a bit confused about how SSH is blocking your upgrade.
Reply to this answer
formatting troubles
If youโ€™re only looking to transfer files, maybe set up a temporary NFS server? Just a thought since the networking situation might allow that.
Reply to this answer
plum_jam_
I spent so much time figuring this out with my setup. You might just need to add two specific lines to RHEL9's SSH configuration. Iโ€™ll update this post once I find those lines for you.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions