Would it be more secure to access a https secured server to get the keyfile then?
Re:We updated our RSA SSH host key
by tialaramex on Friday March 24, 2023 @09:59AM
(#35289157)
Yes, GitHub's announcement provides the correct new public RSA key, and it also provides instructions for a curl invocation which does all the work if you don't trust yourself to copy-paste text or don't understand how.
If your system doesn't know the public key of an SSH server, when you connect the first time, the SSH client will display a warning and ask you if you accept the server key. An attacker could be between you and Github and if you accept without checking it's the correct key, you would be toast.