2
2
_arguments -s -A "-*" \
3
'1:host | user@host: ' \
3
'1:host | user@host:{_ssh;if compset -P "*@"; then _wanted hosts expl "remote host name" _ssh_hosts && ret=0 elif compset -S "@*"; then _wanted users expl "login name" _ssh_users -S "" && ret=0 else if (( $+opt_args[-l] )); then tmp=() else tmp=( "users:login name:_ssh_users -qS@" ) fi; _alternative "hosts:remote host name:_ssh_hosts" "$tmp[@]" && ret=0 fi}' \
5
'(--subsystem)-s[Invoke command (mandatory) as SSH2 subsystem.]' \
6
'(-s)--subsystem[Invoke command (mandatory) as SSH2 subsystem.]' \
7
'(--notty -T --tty)-t[Tty; allocate a tty even if command is given.]' \
8
'(--notty -T -t)--tty[Tty; allocate a tty even if command is given.]' \
9
'(--macs)-m[Specify MAC algorithms for protocol version 2.]:macs:_files' \
10
'(-m)--macs=[Specify MAC algorithms for protocol version 2.]:macs:_files' \
11
'(--version)-V[Display version number only.]' \
12
'(-V)--version[Display version number only.]' \
13
'--help[Display this help and exit.]' \
5
'(--ansilog)-a[Print the receieved data to stdout]' \
6
'(-a)--ansilog[Print the receieved data to stdout]' \
7
'(--cipher)-c[Select encryption algorithm.]:cipher:(aes256-ctr aes256-cbc aes192-ctr aes192-cbc aes128-ctr aes128-cbc cast128-ctr cast128-cbc blowfish-ctr blowfish idea-ctridea-cbc 3des-ctr 3des-cbc)' \
8
'(-c)--cipher=[Select encryption algorithm.]:cipher:(aes256-ctr aes256-cbc aes192-ctr aes192-cbc aes128-ctr aes128-cbc cast128-ctr cast128-cbc blowfish-ctr blowfish idea-ctridea-cbc 3des-ctr 3des-cbc)' \
14
9
'(--compress)-C[Enable compression.]' \
15
10
'(-C)--compress[Enable compression.]' \
16
'(--ansilog)-a[Print the receieved data to stdout]' \
17
'(-a)--ansilog[Print the receieved data to stdout]' \
18
'(--tty -t --notty)-T[Do not allocate a tty.]' \
19
'(--tty -t -T)--notty[Do not allocate a tty.]' \
20
'(--cipher)-c[Select encryption algorithm.]:cipher:_files' \
21
'(-c)--cipher=[Select encryption algorithm.]:cipher:_files' \
22
'(--user)-l[Log in using this user name.]:user:_files' \
23
'(-l)--user=[Log in using this user name.]:user:_files' \
24
'(--noshell)-N[Do not execute a shell or command.]' \
25
'(-N)--noshell[Do not execute a shell or command.]' \
26
11
"(--escape)-e[Set escape character; \`\`none'' = disable]:escape:_files" \
27
12
"(-e)--escape=[Set escape character; \`\`none'' = disable]:escape:_files" \
28
'(--remoteforward)-R[listen-port:host:port Forward remote port to local address]:listen-port:host:port:_files' \
29
'(-R)--remoteforward=[listen-port:host:port Forward remote port to local address]:listen-port:host:port:_files' \
13
'--help[Display this help and exit.]' \
14
'(--identity)-i[Identity for public key authentication]:identity:_files' \
15
'(-i)--identity=[Identity for public key authentication]:identity:_files' \
30
16
'(--localforward)-L[listen-port:host:port Forward local port to remote address]:listen-port:host:port:_files' \
31
17
'(-L)--localforward=[listen-port:host:port Forward local port to remote address]:listen-port:host:port:_files' \
18
'(--log)-v[Log to stderr]' \
19
'(-v)--log[Log to stderr]' \
20
'(--macs)-m[Specify MAC algorithms for protocol version 2.]:macs:(hmac-sha1 hmac-md5)' \
21
'(-m)--macs=[Specify MAC algorithms for protocol version 2.]:macs:(hmac-sha1 hmac-md5)' \
22
'(--noshell)-N[Do not execute a shell or command.]' \
23
'(-N)--noshell[Do not execute a shell or command.]' \
24
'(--tty -t --notty)-T[Do not allocate a tty.]' \
25
'(--tty -t -T)--notty[Do not allocate a tty.]' \
32
26
'(--port)-p[Connect to this port. Server must be on the same port.]:port:_files' \
33
27
'(-p)--port=[Connect to this port. Server must be on the same port.]:port:_files' \
34
'(--identity)-i[Identity for public key authentication]:identity:_files' \
35
'(-i)--identity=[Identity for public key authentication]:identity:_files' \
36
'(--log)-v[Log to stderr]' \
37
'(-v)--log[Log to stderr]' \
28
'(--remoteforward)-R[listen-port:host:port Forward remote port to local address]:listen-port:host:port:_files' \
29
'(-R)--remoteforward=[listen-port:host:port Forward remote port to local address]:listen-port:host:port:_files' \
30
'(--subsystem)-s[Invoke command (mandatory) as SSH2 subsystem.]' \
31
'(-s)--subsystem[Invoke command (mandatory) as SSH2 subsystem.]' \
32
'(--notty -T --tty)-t[Tty; allocate a tty even if command is given.]' \
33
'(--notty -T -t)--tty[Tty; allocate a tty even if command is given.]' \
34
'(--user)-l[Log in using this user name.]:user:_files' \
35
'(-l)--user=[Log in using this user name.]:user:_files' \
36
'(--version)-V[Display version number only.]' \
37
'(-V)--version[Display version number only.]' \