github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/administration/file_transfer_protocol.go (about)

     1  /* Copyright © 2017 VMware, Inc. All Rights Reserved.
     2     SPDX-License-Identifier: BSD-2-Clause
     3  
     4     Generated by: https://github.com/swagger-api/swagger-codegen.git */
     5  
     6  package administration
     7  
     8  type FileTransferProtocol struct {
     9  
    10  	// Scheme to authenticate if required
    11  	AuthenticationScheme *FileTransferAuthenticationScheme `json:"authentication_scheme"`
    12  
    13  	// Protocol name
    14  	ProtocolName string `json:"protocol_name"`
    15  
    16  	// The expected SSH fingerprint of the server. If the server's fingerprint does not match this fingerprint, the connection will be terminated.  Only ECDSA fingerprints hashed with SHA256 are supported. To obtain the host's ssh fingerprint, you should connect via some method other than SSH to obtain this information. You can use one of these commands to view the key's fingerprint: 1. ssh-keygen -l -E sha256 -f ssh_host_ecdsa_key.pub 2. awk '{print $2}' ssh_host_ecdsa_key.pub | base64 -d | sha256sum -b |    sed 's/ .*$//' | xxd -r -p | base64 | sed 's/.//44g' |    awk '{print \"SHA256:\"$1}'
    17  	SshFingerprint string `json:"ssh_fingerprint"`
    18  }