2020-09-19 17:39:51 +08:00
|
|
|
function __fish_complete_ssh -d "common completions for ssh commands" --argument-names command
|
2017-02-02 14:49:40 +08:00
|
|
|
complete -c $command -s 1 -d "Protocol version 1 only"
|
|
|
|
complete -c $command -s 2 -d "Protocol version 2 only"
|
|
|
|
complete -c $command -s 4 -d "IPv4 addresses only"
|
|
|
|
complete -c $command -s 6 -d "IPv6 addresses only"
|
|
|
|
complete -c $command -s C -d "Compress all data"
|
|
|
|
complete -xc $command -s c -d "Encryption algorithm" -a "blowfish 3des des"
|
|
|
|
complete -r -c $command -s F -d "Configuration file"
|
|
|
|
complete -r -c $command -s i -d "Identity file"
|
2020-03-10 02:36:12 +08:00
|
|
|
complete -x -c $command -s o -d Options -a "
|
2006-02-15 10:22:28 +08:00
|
|
|
AddressFamily
|
|
|
|
BatchMode
|
|
|
|
BindAddress
|
|
|
|
ChallengeResponseAuthentication
|
|
|
|
CheckHostIP
|
|
|
|
Cipher
|
|
|
|
Ciphers
|
|
|
|
Compression
|
|
|
|
CompressionLevel
|
|
|
|
ConnectionAttempts
|
|
|
|
ConnectTimeout
|
|
|
|
ControlMaster
|
|
|
|
ControlPath
|
|
|
|
GlobalKnownHostsFile
|
|
|
|
GSSAPIAuthentication
|
|
|
|
GSSAPIDelegateCredentials
|
|
|
|
Host
|
|
|
|
HostbasedAuthentication
|
|
|
|
HostKeyAlgorithms
|
|
|
|
HostKeyAlias
|
|
|
|
HostName
|
|
|
|
IdentityFile
|
|
|
|
IdentitiesOnly
|
|
|
|
LogLevel
|
|
|
|
MACs
|
|
|
|
NoHostAuthenticationForLocalhost
|
|
|
|
NumberOfPasswordPrompts
|
|
|
|
PasswordAuthentication
|
|
|
|
Port
|
|
|
|
PreferredAuthentications
|
|
|
|
Protocol
|
|
|
|
ProxyCommand
|
|
|
|
PubkeyAuthentication
|
|
|
|
RhostsRSAAuthentication
|
|
|
|
RSAAuthentication
|
|
|
|
SendEnv
|
|
|
|
ServerAliveInterval
|
|
|
|
ServerAliveCountMax
|
|
|
|
SmartcardDevice
|
|
|
|
StrictHostKeyChecking
|
|
|
|
TCPKeepAlive
|
|
|
|
UsePrivilegedPort
|
|
|
|
User
|
|
|
|
UserKnownHostsFile
|
|
|
|
VerifyHostKeyDNS
|
|
|
|
"
|
2017-02-02 14:49:40 +08:00
|
|
|
complete -c $command -s v -d "Verbose mode"
|
2006-02-15 10:22:28 +08:00
|
|
|
end
|