If I simply connect to an SSH server, get its key fingerprint, and immediately disconnect, does the SSH protocol ensure that the server also had the private key in order to get that far into the handshake?
That is, could this entire connection have been spoofed by someone pretending to be the server, but did not possess the server's private key?