
    h                     f    S SK r S SKJrJrJr  S SKJrJr  S SKJ	r	   " S S\	R                  5      rg)    N)ListOptionalUnion)
SSHCiphersSSHClientTransport)usagec                   ,   \ rS rSr% / SQ/ SQ/ SQ/ SQ/ SQ/ SQ/ SQ/ S	Q/ S
Q/ SQ/
r\\\\\\	4            \
S'   / SQ/ SQ/ SQ/ SQ/ SQ/ SQ/ SQ/r\R                  " S/\R                  " 5       \R                  " \R"                  R%                  5        V Vs/ s H  oR'                  5       PM     snn SS9\R                  " \R(                  R%                  5        V Vs/ s H  oR'                  5       PM     snn SS9\R                  " \R,                   V Vs/ s H  oR'                  5       PM     snn SS9S.\R.                  " 5       \R0                  " SS9\R0                  " SSS9/S9rS rS  rS! rS" rS# rS$ rS%r g&s  snn f s  snn f s  snn f )'ConchOptions   )userlNzLog in using this user name.)identityiN)cipherscN)macsmN)portpNz7Connect to this port.  Server must be on the same port.)optionoNzIgnored OpenSSH options)host-key-algorithms N)zknown-hostsr   NzFile to check for host keys)user-authenticationsr   Nz%Types of user authentications to use.)logfiler   NzFile to log to, or - for stdoutoptParameters)versionVzDisplay version number only.)compressCzEnable compression.)logvz#Enable logging (defaults to stderr))nox11xz+Disable X11 connection forwarding (default))agentAz&Enable authentication agent forwarding)noagentaz1Disable authentication agent forwarding (default))	reconnectrz2Reconnect to the server if the connection is lost.)r%   r'   zciphers to choose from)descrzmacs to choose fromz"host key algorithms to choose from)r   r   r   r   commandargumentT)r+   repeat)mutuallyExclusive
optActionsextraActionsc                 h    [         R                  R                  " U /UQ70 UD6  / U l        S U l        g )N)r   Options__init__	identitysconns)selfargskws      c/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/twisted/conch/client/options.pyr4   ConchOptions.__init__>   s,    t1d1b1
    c                 :    U R                   R                  U5        g)z&Identity for public-key authenticationN)r5   append)r7   r   s     r:   opt_identityConchOptions.opt_identityC   s    a r<   c                     UR                  S5      nU H2  nU[        R                  ;  d  M  [        R                  " SU-  5        M4     XS'   g)zSelect encryption algorithms,zUnknown cipher type '%s'r   N)splitr   	cipherMapsysexit)r7   r   ciphers      r:   opt_ciphersConchOptions.opt_ciphersG   sC    --$FZ1113f<=  "Yr<   c                     [        U[        5      (       a  UR                  S5      nUR                  S5      nU H2  nU[        R
                  ;  d  M  [        R                  " SU-  5        M4     XS'   g)zSpecify MAC algorithmsutf-8   ,zUnknown mac type '%r'r   N)
isinstancestrencoderC   r   macMaprE   rF   )r7   r   macs      r:   opt_macsConchOptions.opt_macsO   s^    dC  ;;w'Dzz$C*+++0367  Vr<   c                     [        U[        5      (       a  UR                  S5      nUR                  S5      nU H2  nU[        R
                  ;  d  M  [        R                  " SU-  5        M4     XS'   g)zSelect host key algorithmsrK   rL   zUnknown host key type '%r'r   N)rM   rN   rO   rC   r   supportedPublicKeysrE   rF   )r7   hkashkas      r:   opt_host_key_algorithms$ConchOptions.opt_host_key_algorithmsY   sa    dC  ;;w'Dzz$C,@@@5;<  '+"#r<   c                 x    [        U[        5      (       a  UR                  S5      nUR                  S5      U S'   g)z/Choose how to authenticate to the remote serverrK   rL   r   N)rM   rN   rO   rC   )r7   uass     r:   opt_user_authentications%ConchOptions.opt_user_authenticationsc   s0    c3**W%C'*yy#$r<   )r6   r5   N)!__name__
__module____qualname____firstlineno__r   r   r   r   rN   int__annotations__optFlagsr   CompletionsCompleteUsernamesCompleteMultiListr   rD   keysdecoderP   r   rU   CompleteUserAtHost	CompletercompDatar4   r?   rH   rR   rX   r\   __static_attributes__).0r"   s   00r:   r
   r
      s   ;V8)@S@<M4XeCHo678  	90;E@MPH   /0++-..%/%9%9%>%>%@A%@%@A. ++%/%6%6%;%;%=>%=%=>+ $)#:#:%7%K%KL%K%KL:$
$ $$&OO),OO*T:
'H4
!"+7u B ? Ms   F!F
Fr
   )rE   typingr   r   r   twisted.conch.ssh.transportr   r   twisted.pythonr   r3   r
    r<   r:   <module>rs      s+     ( ( G  [75== [7r<   