__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x[h�+�
��%SrSSKrSSKrSSKrSSKrSSKrSSKJrJrJ	r	 SSK
JrJrJ
r
Jr SSKJr SSKJr SSKJr SSKJrJr SS	KJr S
\/\/S.r\\S'\R8"\5r/S
QrS/r Sr!Sr"/r#\\$\S'0r%0r&\HCr'\%RQ\'S3\!\'-S4\'S3\!\'-S3S4\'S3\!\'-S3S405 \'S3\&\'S3'ME Sr)S\$SS4Sjr*S\$S\S\S \+SS4
S!jr,S"r-S%S#\\	\$4S$jjr.g)&zSSH: Configure SSH and SSH keys�N)�List�Optional�Sequence)�	lifecycle�ssh_util�subp�util)�Cloud)�Config)�
MetaSchema)�ALL_DISTROS�ug_util)�PER_INSTANCE�cc_ssh)�id�distros�	frequency�activate_by_schema_keys�meta)�rsa�ecdsa�ed25519rz/etc/ssh/ssh_host_%s_keyT�HOST_KEY_PUBLISH_BLACKLIST�_private��_public�.pub��_certificatez	-cert.pubz;o=$(ssh-keygen -yf "%s") && echo "$o" root@localhost > "%s"�keyfile�returnc�H�Sn[R"5nU(aU[R"SS5:aSnOSn[R
"S5nUS:wa[R"USU5 [R"X5 [R"US3U5 g	)
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 atleast 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.
r�	ri�r�ssh_keys���rN)	r�get_opensshd_upstream_versionr�Versionr	�get_group_id�os�chown�chmod)r �permissions_public�ssh_version�permissions_private�gids     �9/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh.py�set_redhat_keyfile_permsr1=s������8�8�:�K��{�Y�%6�%6�q�!�%<�<�
$��$��
�
�
�J�
'�C�
�b�y�
	����"�c�"��H�H�W�*��H�H��y��
�1�2��name�cfg�cloud�argsc	�j
�URSS5(aT[RRSS5n[R"U5Hn[
R"U5 M SU;Gap/nUSR5H�upxU[;a9[R"SU5(aSn	OS	n	[RS
X�5 MH[USn
[USn[
R"X�U5 S
U;dMUR!S[#U
545 M� U(a[$R&"U5 [(R5H�up�X�S;dX�S;aM[US[U
Sp�SS[*X�4-/n[
R,"SSS9 [.R."USS9 SSS5 [R1SX�5 M� GO�[
R2"US[45n[
R6"5(dUOUVs/sHnU[8;dMUPM snn[;U5R=U5nU(a%[R1SSRU55 UGHn[>U-n[RRAU5(aM3[
RB"[RREU55 SSUSSSU/n[
R,"SSS9 [.R."USS S!0S"9unn[
RF"US#S5(d3[HRJRM[
RN"U55 URPRRS$:Xa[UU5 SSS5 GM! S(U;a?[
R2"US(S)[`5n[
RF"US(S*[b5nO[`n[bnU(a%[eUS+9nURfRiU5 [jRl"XRP5unn[jRn"U5unn [
RF"US-S5n![
Rp"US.[$Rr5n"/n#[
RF"US/S5(aURu5=(d /n#O[R1S05 S1U;aUS1n$U#RwU$5 [yU#UU!U"5 g![a! [
R"[SU5 GM�f=f!,(df   GN�=f![a& [
R"[SUSU35 GM-f=fs snf![.RVa�n[
RN"URX5R[5nUR\S:Xa@UR[5R_S%5(a[R1S&U5 SnAGN�[
R"[S'UU5 SnAGN�SnAff=f!,(df   GM�=f![a [
R"[S,5 GNdf=f![a [
R"[S25 gf=f)3N�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�r�HostCertificate�shz-xcz/etc/ssh)�	recursiveF)�capturezGenerated 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�append�strr�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�
startswithr�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%                                     r0�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��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�"�D��I�I�>�
�
!�C�'��/�0�G��K�K�� ��$��l�4E�F��g�
C����C�!>��B�B�
C��NC�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��T�U�)U�?U�V	�1V	�Y�BV�Y�#C2Z
�&U�U�
U	�U�+V�V�Y�"A8Y�Y� Y�=Y�Y�Y�
Y	�%Z�Z�
%Z2�1Z2c���[U5nU(a[R"X5 U(a.U(dSnURSU5nURSS5nOSn[R"USUS9 g)N�NONEz$USERz
$DISABLE_USER�rootrB)�options)rhr�setup_user_keys�replace)r�r�rKrL�
key_prefixs     r0r�r�sb���t�9�D��� � ��,����D�&�.�.�w��=�
��'�'���@�
��
����T�6�:�>r2rIc��[<S3n/n/nU(aUVs/sHoAU4-PM
 nn[R"US-5Vs/sHnXS;dM
UPM nnUH`n[R"U5nUR	5n	U	(dM2[U	5S:�dMCUR
[U	SS55 Mb U$s snfs snf)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)�*r;N�)rjrRr	�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
          r0r{r{s���(4�5���H��O��@I�
�?H�8�H�;�.�y�	�
��	�	�"6��"?�@��@�H��*�	�@����	��+�+�I�6�
� �&�&�(���8��H�
��)��O�O�E�(�2�A�,�/�0�	�
�O��#
��s�C�	C�C)N)/�__doc__rR�loggingr)rYro�typingrrr�	cloudinitrrrr	�cloudinit.cloudr
�cloudinit.configr�cloudinit.config.schemar�cloudinit.distrosr
r�cloudinit.settingsrr�__annotations__�	getLogger�__name__rVrergrjrzrr^rXr`�k�updaterar1�listr�r�r{�r2r0�<module>r�s���&���	�	�
�+�+�5�5�!�#�.�2�+���}��!�	��j������!��0��'�[��)����(*��D��I�*�����	�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�c�!3�d�!3�H]=��]=�6�]=�%�]=�t�]=��]=�@?�"�H�X�c�]�$;�r2

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 208 B 0644
cc_ansible.cpython-313.pyc File 13.56 KB 0644
cc_apk_configure.cpython-313.pyc File 4.24 KB 0644
cc_apt_configure.cpython-313.pyc File 40.51 KB 0644
cc_apt_pipelining.cpython-313.pyc File 2.22 KB 0644
cc_bootcmd.cpython-313.pyc File 2.49 KB 0644
cc_byobu.cpython-313.pyc File 3.22 KB 0644
cc_ca_certs.cpython-313.pyc File 8.43 KB 0644
cc_chef.cpython-313.pyc File 13.83 KB 0644
cc_disable_ec2_metadata.cpython-313.pyc File 1.87 KB 0644
cc_disk_setup.cpython-313.pyc File 32.24 KB 0644
cc_fan.cpython-313.pyc File 2.97 KB 0644
cc_final_message.cpython-313.pyc File 3.59 KB 0644
cc_growpart.cpython-313.pyc File 23.64 KB 0644
cc_grub_dpkg.cpython-313.pyc File 5.97 KB 0644
cc_install_hotplug.cpython-313.pyc File 4.07 KB 0644
cc_keyboard.cpython-313.pyc File 1.86 KB 0644
cc_keys_to_console.cpython-313.pyc File 2.88 KB 0644
cc_landscape.cpython-313.pyc File 3.69 KB 0644
cc_locale.cpython-313.pyc File 1.57 KB 0644
cc_lxd.cpython-313.pyc File 15.8 KB 0644
cc_mcollective.cpython-313.pyc File 3.75 KB 0644
cc_mounts.cpython-313.pyc File 22.29 KB 0644
cc_ntp.cpython-313.pyc File 16.82 KB 0644
cc_package_update_upgrade_install.cpython-313.pyc File 5.19 KB 0644
cc_phone_home.cpython-313.pyc File 3.93 KB 0644
cc_power_state_change.cpython-313.pyc File 8.38 KB 0644
cc_puppet.cpython-313.pyc File 10.86 KB 0644
cc_reset_rmc.cpython-313.pyc File 5.26 KB 0644
cc_resizefs.cpython-313.pyc File 11.22 KB 0644
cc_resolv_conf.cpython-313.pyc File 3.49 KB 0644
cc_rh_subscription.cpython-313.pyc File 18.68 KB 0644
cc_rsyslog.cpython-313.pyc File 13.95 KB 0644
cc_runcmd.cpython-313.pyc File 1.77 KB 0644
cc_salt_minion.cpython-313.pyc File 4.9 KB 0644
cc_scripts_per_boot.cpython-313.pyc File 1.5 KB 0644
cc_scripts_per_instance.cpython-313.pyc File 1.51 KB 0644
cc_scripts_per_once.cpython-313.pyc File 1.49 KB 0644
cc_scripts_user.cpython-313.pyc File 1.47 KB 0644
cc_scripts_vendor.cpython-313.pyc File 1.63 KB 0644
cc_seed_random.cpython-313.pyc File 3.92 KB 0644
cc_set_hostname.cpython-313.pyc File 3.85 KB 0644
cc_set_passwords.cpython-313.pyc File 10.9 KB 0644
cc_snap.cpython-313.pyc File 4.79 KB 0644
cc_spacewalk.cpython-313.pyc File 3.37 KB 0644
cc_ssh.cpython-313.pyc File 11.57 KB 0644
cc_ssh_authkey_fingerprints.cpython-313.pyc File 5.25 KB 0644
cc_ssh_import_id.cpython-313.pyc File 5.2 KB 0644
cc_timezone.cpython-313.pyc File 1.35 KB 0644
cc_ubuntu_autoinstall.cpython-313.pyc File 1.81 KB 0644
cc_ubuntu_drivers.cpython-313.pyc File 5.34 KB 0644
cc_ubuntu_pro.cpython-313.pyc File 15.12 KB 0644
cc_update_etc_hosts.cpython-313.pyc File 2.77 KB 0644
cc_update_hostname.cpython-313.pyc File 2.49 KB 0644
cc_users_groups.cpython-313.pyc File 3.1 KB 0644
cc_wireguard.cpython-313.pyc File 9.03 KB 0644
cc_write_files.cpython-313.pyc File 6.27 KB 0644
cc_write_files_deferred.cpython-313.pyc File 1.82 KB 0644
cc_yum_add_repo.cpython-313.pyc File 5.27 KB 0644
cc_zypper_add_repo.cpython-313.pyc File 6.28 KB 0644
modules.cpython-313.pyc File 13.12 KB 0644
schema.cpython-313.pyc File 54.5 KB 0644
Filemanager