Find public key of the SCP server
The server can have multiple host keys, so the default key depends on the host platform. Use the right key until the test connection is successful.
Procedure
-
Find the SSH public key of the SCP server. It varies based on the platform.
For example, for the Linux SCP server (Ubuntu OS), you can find the key (ssh_host_ecdsa_key.pub) at /etc/ssh/ location.
For Windows SCP server, you can find the key ssh_host_ecdsa_key.pub under C:\ProgramData\ssh.
-
Copy the default SSH public key of the SCP server.