SFTP使用key文件登录

命令:

sftp -oPort=10080 -oIdentityFile=/root/.ssh/user.priv user@39.39.100.100

命令选项:

-o ssh_option
         Can be used to pass options to ssh in the format used in ssh_config(5).  This is useful for specifying options for which there is no separate sftp command-line flag.  For exam-
         ple, to specify an alternate port use: sftp -oPort=24.  For full details of the options listed below, and their possible values, see ssh_config(5).

              AddressFamily
               BatchMode
               BindAddress
               ChallengeResponseAuthentication
               CheckHostIP
               Cipher
               Ciphers
               Compression
               CompressionLevel
               ConnectionAttempts
               ConnectTimeout
               ControlMaster
               ControlPath
               GlobalKnownHostsFile
               GSSAPIAuthentication
               GSSAPIDelegateCredentials
               HashKnownHosts
               Host
               HostbasedAuthentication
               HostKeyAlgorithms
               HostKeyAlias
               HostName
               IdentityFile
               IdentitiesOnly
               KbdInteractiveDevices
               LogLevel
               MACs
               NoHostAuthenticationForLocalhost
               NumberOfPasswordPrompts
               PasswordAuthentication
               PKCS11Provider
               Port
               PreferredAuthentications
               Protocol
               ProxyCommand
               PubkeyAuthentication
               RekeyLimit
               RhostsRSAAuthentication
               RSAAuthentication
               SendEnv
               ServerAliveInterval
               ServerAliveCountMax
               StrictHostKeyChecking
               TCPKeepAlive
               UsePrivilegedPort
               User
               UserKnownHostsFile
               VerifyHostKeyDNS

--完成

原文地址:https://www.cnblogs.com/bugbeta/p/10855649.html