??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
ßUdac @ s¨ d d l Z d d l Z d d l Z d d l m Z y d d l m Z Wn e k
rg d d l Z n Xd Z d „ Z
d „ Z d „ Z d „ Z
d d
e d „ Z d S( iÿÿÿÿN( t urlparse( t sha1s |1|c C sD d | k r d | k r t Sx! d D] } | j | ƒ r# t Sq# Wt S( s check if url is ssh t @s ://s ssh://s
git+ssh://s
ssh+git://( s ssh://s
git+ssh://s
ssh+git://( t Truet
startswitht False( t urlt scheme( ( sD /usr/lib/python2.7/site-packages/ansible/module_utils/known_hosts.pyt
is_ssh_url+ s
c C sv d
} d
} t j d ƒ } d | k rº d | k rº | j d d ƒ d } | j | ƒ } | rs | j ƒ \ } } qld | k r• | j d ƒ d } qld | k rl| j d ƒ d } qln² d | k rlt | ƒ } | d d k rl| d } d | k r| j d d ƒ d } n | j | ƒ } | r;| j ƒ \ } } qid | k ri| j d ƒ d d !\ } } qiqln | | f S( s) chop the hostname and port out of a url s (\[[^]]*\])(?::([0-9]+))?R s ://i t :i t /t i N( t Nonet ret compilet splitt matcht groupsR ( t repo_urlt fqdnt portt ipv6_reR t patht parts( ( sD /usr/lib/python2.7/site-packages/ansible/module_utils/known_hosts.pyt get_fqdn_and_port7 s0
%c C s t | | ƒ S( N( t not_in_host_file( t moduleR ( ( sD /usr/lib/python2.7/site-packages/ansible/module_utils/known_hosts.pyt
check_hostkeyZ s c
C sù d t j k r$ t j j d ƒ } n d } t j j | ƒ } g } | j | ƒ | j d ƒ | j d ƒ | j d ƒ d } xv| D]n} t j j | ƒ s« | d 7} qƒ n y t | ƒ } Wn t k
rÛ | d 7} qƒ n X| j ƒ } | j
ƒ xü | j d ƒ D]ë } | d k sd
| k r&qn | j ƒ } | d j
t ƒ d k rÙyt | d t t ƒ j d d ƒ \ }
} t j |
j d
ƒ d t ƒ} | j | ƒ | j ƒ | j d
ƒ k r¾t SWqít k
rÕqqíXq| | d k rt SqWqƒ Wt S( Nt USERs ~${USER}/.ssh/known_hostss ~/.ssh/known_hostss /etc/ssh/ssh_known_hostss /etc/ssh/ssh_known_hosts2s /etc/openssh/ssh_known_hostsi i s
t t |i t base64t digestmod( t ost environR t
expandvarst
expandusert appendt existst opent IOErrort readt closeR R t findt HASHED_KEY_MAGICt lent hmact newt decodeR t updatet digestR t ExceptionR (
t selft hostt user_host_filet host_file_listt hfiles_not_foundt hft host_fht datat linet tokenst kn_saltt kn_hostt hash( ( sD /usr/lib/python2.7/site-packages/ansible/module_utils/known_hosts.pyR a sJ
&
i t rsac
C sÛ | j d t ƒ } d t j k rH t j j d ƒ } t j j d ƒ } n d } d } t j j | ƒ } t j j | ƒ sÝ | rÆ y t j | t d d ƒ ƒ WqÚ t
k
r | j d d
| ƒ qÚ Xq| j d d | ƒ n) t j j | ƒ s| j d d | ƒ n | r%d
| | | | f } n d | | | f } | j
| ƒ \ } }
} | d k sc|
r¾d } |
s€| d | 7} n | d | |
f 7} | r«| d | 7} n | j d | ƒ n | j | |
ƒ | |
| f S( s$ use ssh-keyscan to add the hostkey s ssh-keyscanR s ~${USER}/.ssh/s ~${USER}/.ssh/known_hostss ~/.ssh/s ~/.ssh/known_hostst 700i t msgs' failed to create host key directory: %ss %s does not exists %s is not a directorys %s -t %s -p %s %ss %s -t %s %si s failed to retrieve hostkeys . "%s" returned no matches.s! using command "%s". [stdout]: %ss
[stderr]: %s( t get_bin_pathR R! R" R R# R$ R&