Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
emr
/
File Content:
ssh.pyc
� =��Xc @ s� d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����N( t constants( t emrutils( t sshutils( t Commands� A value for the variable Key Pair File can be set in the AWS CLI config file using the "aws configure set emr.key_pair_file <value>" command. t Socksc B sW e Z d Z d e Z i d d 6e d 6d d 6i d d 6e d 6d d 6g Z d � Z RS( t sockssF Create a socks tunnel on port 8157 from your machine to the master. %ss cluster-idt namet requireds* Cluster Id of cluster you want to ssh intot help_texts key-pair-files! Private key file to use for loginc C s y� t j d | j d | d | j � } | j } t j | � t j d t � } t j d � sm t j d � r� d d d d d d d d | j t j d | g } n, d d d | j t j d | d d d g } d j | � GHt j | � } | SWn t k r d GHd SXd S( Nt sessiont parsed_globalst cluster_idt deletet sshs ssh.exes -os StrictHostKeyChecking=nos ServerAliveInterval=10s -NDt 8157s -it @t puttys -sshs -Ns -Dt s Disabling Socks Tunnel.i ( R t validate_and_find_master_dnst _sessionR t key_pair_filet validate_ssh_with_key_filet tempfilet NamedTemporaryFilet FalseR t whichR t SSH_USERt joint subprocesst callt KeyboardInterrupt( t selft parsed_argsR t master_dnst key_filet ft commandt rc( ( s= /tmp/pip-build-uEGWVr/awscli/awscli/customizations/emr/ssh.pyt _run_main_command'