ssh: Add some -o and related arg completions.
This commit is contained in:
parent
49ea121e5d
commit
45c9ff5f69
@ -17,22 +17,25 @@ _ssh_macs()
|
|||||||
_ssh_options()
|
_ssh_options()
|
||||||
{
|
{
|
||||||
compopt -o nospace
|
compopt -o nospace
|
||||||
COMPREPLY=( $( compgen -S = -W 'AddressFamily BatchMode BindAddress \
|
COMPREPLY=( $( compgen -S = -W 'AddressFamily BatchMode BindAddress
|
||||||
ChallengeResponseAuthentication CheckHostIP Cipher Ciphers \
|
ChallengeResponseAuthentication CheckHostIP Cipher Ciphers
|
||||||
ClearAllForwardings Compression CompressionLevel ConnectionAttempts \
|
ClearAllForwardings Compression CompressionLevel ConnectionAttempts
|
||||||
ConnectTimeout ControlMaster ControlPath DynamicForward EscapeChar \
|
ConnectTimeout ControlMaster ControlPath ControlPersist DynamicForward
|
||||||
ExitOnForwardFailure ForwardAgent ForwardX11 ForwardX11Trusted \
|
EnableSSHKeysign EscapeChar ExitOnForwardFailure ForwardAgent
|
||||||
GatewayPorts GlobalKnownHostsFile GSSAPIAuthentication \
|
ForwardX11 ForwardX11Timeout ForwardX11Trusted GatewayPorts
|
||||||
GSSAPIDelegateCredentials HashKnownHosts Host HostbasedAuthentication \
|
GlobalKnownHostsFile GSSAPIAuthentication GSSAPIClientIdentity
|
||||||
HostKeyAlgorithms HostKeyAlias HostName IdentityFile IdentitiesOnly \
|
GSSAPIDelegateCredentials GSSAPIKeyExchange GSSAPIRenewalForcesRekey
|
||||||
KbdInteractiveDevices LocalCommand LocalForward LogLevel MACs \
|
GSSAPIServerIdentity GSSAPITrustDns HashKnownHosts Host
|
||||||
NoHostAuthenticationForLocalhost NumberOfPasswordPrompts \
|
HostbasedAuthentication HostKeyAlgorithms HostKeyAlias HostName
|
||||||
PasswordAuthentication PermitLocalCommand Port \
|
IdentityFile IdentitiesOnly IPQoS KbdInteractiveDevices KexAlgorithms
|
||||||
PreferredAuthentications Protocol ProxyCommand PubkeyAuthentication \
|
LocalCommand LocalForward LogLevel MACs
|
||||||
RekeyLimit RemoteForward RhostsRSAAuthentication RSAAuthentication \
|
NoHostAuthenticationForLocalhost NumberOfPasswordPrompts
|
||||||
SendEnv ServerAliveInterval ServerAliveCountMax SmartcardDevice \
|
PasswordAuthentication PermitLocalCommand PKCS11Provider Port
|
||||||
StrictHostKeyChecking TCPKeepAlive Tunnel TunnelDevice \
|
PreferredAuthentications Protocol ProxyCommand PubkeyAuthentication
|
||||||
UsePrivilegedPort User UserKnownHostsFile VerifyHostKeyDNS \
|
RekeyLimit RemoteForward RequestTTY RhostsRSAAuthentication
|
||||||
|
RSAAuthentication SendEnv ServerAliveCountMax ServerAliveInterval
|
||||||
|
SmartcardDevice StrictHostKeyChecking TCPKeepAlive Tunnel TunnelDevice
|
||||||
|
UsePrivilegedPort User UserKnownHostsFile VerifyHostKeyDNS
|
||||||
VisualHostKey XAuthLocation' -- "$cur" ) )
|
VisualHostKey XAuthLocation' -- "$cur" ) )
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,9 +50,10 @@ _ssh_suboption()
|
|||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
BatchMode|ChallengeResponseAuthentication|CheckHostIP|\
|
BatchMode|ChallengeResponseAuthentication|CheckHostIP|\
|
||||||
ClearAllForwardings|Compression|ExitOnForwardFailure|ForwardAgent|\
|
ClearAllForwardings|ControlPersist|Compression|EnableSSHKeysign|\
|
||||||
ForwardX11|ForwardX11Trusted|GatewayPorts|GSSAPIAuthentication|\
|
ExitOnForwardFailure|ForwardAgent|ForwardX11|ForwardX11Trusted|\
|
||||||
GSSAPIKeyExchange|GSSAPIDelegateCredentials|GSSAPITrustDns|\
|
GatewayPorts|GSSAPIAuthentication|GSSAPIKeyExchange|\
|
||||||
|
GSSAPIDelegateCredentials|GSSAPIRenewalForcesRekey|GSSAPITrustDns|\
|
||||||
HashKnownHosts|HostbasedAuthentication|IdentitiesOnly|\
|
HashKnownHosts|HostbasedAuthentication|IdentitiesOnly|\
|
||||||
KbdInteractiveAuthentication|KbdInteractiveDevices|\
|
KbdInteractiveAuthentication|KbdInteractiveDevices|\
|
||||||
NoHostAuthenticationForLocalhost|PasswordAuthentication|\
|
NoHostAuthenticationForLocalhost|PasswordAuthentication|\
|
||||||
@ -67,9 +71,16 @@ _ssh_suboption()
|
|||||||
Cipher)
|
Cipher)
|
||||||
COMPREPLY=( $( compgen -W 'blowfish des 3des' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W 'blowfish des 3des' -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
|
IPQoS)
|
||||||
|
COMPREPLY=( $( compgen -W 'af1{1..4} af2{2..3} af3{1..3} af4{1..3}
|
||||||
|
cs{0..7} ef lowdelay throughput reliability' -- "$cur" ) )
|
||||||
|
;;
|
||||||
Protocol)
|
Protocol)
|
||||||
COMPREPLY=( $( compgen -W '1 2 1,2 2,1' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '1 2 1,2 2,1' -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
|
RequestTTY)
|
||||||
|
COMPREPLY=( $( compgen -W 'no yes force auto' -- "$cur" ) )
|
||||||
|
;;
|
||||||
Tunnel)
|
Tunnel)
|
||||||
COMPREPLY=( $( compgen -W 'yes no point-to-point ethernet' \
|
COMPREPLY=( $( compgen -W 'yes no point-to-point ethernet' \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user