Server keys and certificates
How Cargo knows it is talking to the right server.
The first time Cargo connects to an SFTP server, it shows the server's key and its fingerprint before sending anything. Compare it with the one the server's administrator gives you before trusting it. A key that has changed since the last connection is shown as a warning: the server may have been reinstalled, or someone may be intercepting the connection.
A TLS certificate the system does not trust (common for FTPS servers with a self-signed certificate) is shown the same way, with its SHA-256 fingerprint.
Trusted keys and certificates are listed in Settings → Trusted Keys, where they can be forgotten. Keys in ~/.ssh/known_hosts are read too, but never changed.