File: //proc/self/root/usr/lib/python3/dist-packages/twisted/conch/__pycache__/tap.cpython-38.pyc
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<