public SftpConnectorConfig withTrustedHostKeys(String... trustedHostKeys) {
        if (this.trustedHostKeys == null) {
            setTrustedHostKeys(new java.util.ArrayList<String>(trustedHostKeys.length));
        }
        for (String ele : trustedHostKeys) {
            this.trustedHostKeys.add(ele);
        }
        return this;
    }
<p>
The public portion of the host key, or keys, that are used to identify the external server to which you are
connecting. You can use the <code>ssh-keyscan</code> command against the SFTP server to retrieve the necessary
key.
</p>
<p>
The three standard SSH public key format elements are <code>&lt;key type&gt;</code>,
<code>&lt;body base64&gt;</code>, and an optional <code>&lt;comment&gt;</code>, with spaces between each element.
Specify only the <code>&lt;key type&gt;</code> and <code>&lt;body base64&gt;</code>: do not enter the
<code>&lt;comment&gt;</code> portion of the key.
</p>
<p>
For the trusted host key, Transfer Family accepts RSA and ECDSA keys.
</p>
<ul>
<li>
<p>
For RSA keys, the <code>&lt;key type&gt;</code> string is <code>ssh-rsa</code>.
</p>
</li>
<li>
<p>
For ECDSA keys, the <code>&lt;key type&gt;</code> string is either <code>ecdsa-sha2-nistp256</code>,
<code>ecdsa-sha2-nistp384</code>, or <code>ecdsa-sha2-nistp521</code>, depending on the size of the key you
generated.
</p>
</li>
</ul>
<p>
Run this command to retrieve the SFTP server host key, where your SFTP server name is <code>ftp.host.com</code>.
</p>
<p>
<code>ssh-keyscan ftp.host.com</code>
</p>
<p>
This prints the public host key to standard output.
</p>
<p>
<code>ftp.host.com ssh-rsa AAAAB3Nza...&lt;long-string-for-public-key</code>
</p>
<p>
Copy and paste this string into the <code>TrustedHostKeys</code> field for the <code>create-connector</code>
command or into the <b>Trusted host keys</b> field in the console.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTrustedHostKeys(java.util.Collection)} or {@link #withTrustedHostKeys(java.util.Collection)} if you
want to override the existing values.
</p>

@param trustedHostKeys
       The public portion of the host key, or keys, that are used to identify the external server to which you
       are connecting. You can use the <code>ssh-keyscan</code> command against the SFTP server to retrieve the
       necessary key.</p>
       <p>
       The three standard SSH public key format elements are <code>&lt;key type&gt;</code>,
       <code>&lt;body base64&gt;</code>, and an optional <code>&lt;comment&gt;</code>, with spaces between each
       element. Specify only the <code>&lt;key type&gt;</code> and <code>&lt;body base64&gt;</code>: do not enter
       the <code>&lt;comment&gt;</code> portion of the key.
       </p>
       <p>
       For the trusted host key, Transfer Family accepts RSA and ECDSA keys.
       </p>
       <ul>
       <li>
       <p>
       For RSA keys, the <code>&lt;key type&gt;</code> string is <code>ssh-rsa</code>.
       </p>
       </li>
       <li>
       <p>
       For ECDSA keys, the <code>&lt;key type&gt;</code> string is either <code>ecdsa-sha2-nistp256</code>,
       <code>ecdsa-sha2-nistp384</code>, or <code>ecdsa-sha2-nistp521</code>, depending on the size of the key
       you generated.
       </p>
       </li>
       </ul>
       <p>
       Run this command to retrieve the SFTP server host key, where your SFTP server name is
       <code>ftp.host.com</code>.
       </p>
       <p>
       <code>ssh-keyscan ftp.host.com</code>
       </p>
       <p>
       This prints the public host key to standard output.
       </p>
       <p>
       <code>ftp.host.com ssh-rsa AAAAB3Nza...&lt;long-string-for-public-key</code>
       </p>
       <p>
       Copy and paste this string into the <code>TrustedHostKeys</code> field for the
       <code>create-connector</code> command or into the <b>Trusted host keys</b> field in the console.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/SftpConnectorConfig.java