403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/cloudinit/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python2.7/site-packages/cloudinit/config/cc_ssh_import_id.pyc
�
oB�]c@sTdZddlmZddlmZddlZddgZd�Zd�ZdS(	s9
SSH Import Id
-------------
**Summary:** import ssh id

This module imports ssh keys from either a public keyserver, usually launchpad
or github using ``ssh-import-id``. Keys are referenced by the username they are
associated with on the keyserver. The keyserver can be specified by prepending
either ``lp:`` for launchpad or ``gh:`` for github to the username.

**Internal name:** ``cc_ssh_import_id``

**Module frequency:** per instance

**Supported distros:** ubuntu, debian

**Config keys**::

    ssh_import_id:
        - user
        - gh:user
        - lp:user
i����(tug_util(tutilNtubuntutdebiancCs�t|�dkrU|d}g}t|�dkrA|d}nt|||�dStj||j�\}}g}	x/|j�D]!\}}
g}|
dr�tj|dg�}n5y|
d}Wn$tk
r�|j	d|�q�nXy2tj
|�}g|D]}t|�^q}Wn$tk
rD|j	d|�q�nXt|�sWq�nyt|||�Wq�tk
r�}
tj|d||�|	j
|
�q�Xq�Wt|	�r�|	d�ndS(Niitdefaultt
ssh_import_ids+User %s is not configured for ssh_import_ids5User %s is not correctly configured for ssh_import_idsssh-import-id failed for: %s %s(tlentimport_ssh_idsRtnormalize_users_groupstdistrotitemsRtget_cfg_option_listt	Exceptiontdebugt
uniq_mergetstrtlogexctappend(t_nametcfgtcloudtlogtargstusertidstuserst_groupstelisttuser_cfgt
import_idstitexc((sE/usr/lib/python2.7/site-packages/cloudinit/config/cc_ssh_import_id.pythandle)sF



#
	cCs�|o	|s#|jd||�dSytj|�Wntk
rO}|�nXdd|dg|}|jd|�ytj|dt�Wn/tjk
r�}tj|d|�|�nXdS(Ns(empty user(%s) or ids(%s). not importingtsudos-Hus
ssh-import-idsImporting ssh ids for user %s.tcaptures*Failed to run command to import %s ssh ids(	R
tpwdtgetpwnamtKeyErrorRtsubptFalsetProcessExecutionErrorR(RRRRtcmd((sE/usr/lib/python2.7/site-packages/cloudinit/config/cc_ssh_import_id.pyRYs
(	t__doc__tcloudinit.distrosRt	cloudinitRR#tdistrosR R(((sE/usr/lib/python2.7/site-packages/cloudinit/config/cc_ssh_import_id.pyt<module>s	0

Youez - 2016 - github.com/yon3zu
LinuXploit