| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/conch/__pycache__/ |
Upload File : |
U
W[o � @ sr d Z ddlmZ ddlmZ ddlmZ ddlmZm Z ddl
mZ ddlm
Z
G dd � d eje j�Zd
d� ZdS )
z4
Support module for making SSH servers with twistd.
� )�unix)�checkers)�factory)�portal�strcred)�usage)�strportsc s� e Zd ZdZdZddddgddd d
gddd
dgddddggZejejdd�ejdd�e� � d�d�Z
� fdd�Z� fdd�Z� Z
S )�Optionsz([-i <interface>] [-p <port>] [-d <dir>] z�Makes a Conch SSH server. If no authentication methods are specified, the default authentication methods are UNIX passwords and SSH public keys. If --auth options are passed, only the measures specified will be used.� interface�i� z"local interface to which we listen�port�pztcp:22zPort on which to listen�data�dz/etcz"directory to look for host keys in�moduliNz:directory to look for moduli in (if different from --data)zdata directory)Zdescrzmoduli directory)r r r
)Z
optActionsc sL t jj| f|�|� tt| ��t�� � tt| ��t�t�� �� d| _ d S )NT)
r r �__init__�super�
addChecker�conch_checkersZUNIXPasswordDatabaseZSSHPublicKeyCheckerZUNIXAuthorizedKeysFiles�_usingDefaultAuth)�self�a�kw�� __class__� �3/usr/lib/python3/dist-packages/twisted/conch/tap.pyr % s �zOptions.__init__c s0 | j rg | d<