- I logged in to a known host -
ssh [email protected]
. - I did
a2enmod ssl
and I generated a CSR to enable SSL on one of the virtual hosts on the server. - From a separate terminal tab, I tried to do an
scp
to the same host.
At this point, the server responded with:
The authenticity of host 'example.com (123.123.123.12)' can't be established.
Given the context, is this normal?
It has nothing to do with SSL.
Why you should get the warning from scp is a different matter. Assuming the hostname is exactly the same as when you SSHed, perhaps you are using
scp
as a different user or from a different host (or usingsudo
, which means you will be using root's known_hosts file).To verify the fingerprint, you can use
ssh-keygen -l -f
with the public keys on the known host.