Created
November 7, 2019 21:21
-
-
Save iandelahorne/68afd5fa8f937e240ca46e32900fc1d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✔ ~/src/ansible [master|✚ 1…1⚑ 3]$ ./scripts/pssh i-021dc9f489f95bbfc hostname | |
OpenSSH_7.9p1, LibreSSL 2.7.3 | |
debug1: Reading configuration data /Users/ian/.ssh/config | |
debug1: /Users/ian/.ssh/config line 4: Applying options for * | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: /etc/ssh/ssh_config line 48: Applying options for * | |
debug1: Executing proxy command: exec aws ssm start-session --debug --region us-west-1 --target i-021dc9f489f95bbfc --document-name AWS-StartSSHSession --parameters 'portNumber=22' | |
debug1: identity file /Users/ian/.ssh/id_rsa type 0 | |
debug1: identity file /Users/ian/.ssh/id_rsa-cert type -1 | |
debug1: Local version string SSH-2.0-OpenSSH_7.9 | |
2019-11-07 13:18:49,401 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.16.260 Python/3.7.4 Darwin/18.7.0 botocore/1.12.250 | |
2019-11-07 13:18:49,402 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['ssm', 'start-session', '--debug', '--region', 'us-west-1', '--target', 'i-021dc9f489f95bbfc', '--document-name', 'AWS-StartSSHSession', '--parameters', 'portNumber=22'] | |
2019-11-07 13:18:49,402 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x1021a5ef0> | |
2019-11-07 13:18:49,402 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x101b8ba70> | |
2019-11-07 13:18:49,402 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x101bf80e0> | |
2019-11-07 13:18:49,411 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x102056d40> | |
2019-11-07 13:18:49,412 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/1.16.260/libexec/lib/python3.7/site-packages/botocore/data/ssm/2014-11-06/service-2.json | |
2019-11-07 13:18:49,425 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ssm: calling handler <function add_custom_start_session at 0x1021c99e0> | |
2019-11-07 13:18:49,426 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ssm: calling handler <function add_waiters at 0x1021bab00> | |
2019-11-07 13:18:49,439 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('target', <awscli.arguments.CLIArgument object at 0x103ef1a90>), ('document-name', <awscli.arguments.CLIArgument object at 0x103ef1c90>), ('parameters', <awscli.arguments.CLIArgument object at 0x103ef1990>)]) | |
2019-11-07 13:18:49,439 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.ssm.start-session: calling handler <function add_streaming_output_arg at 0x1021ad560> | |
2019-11-07 13:18:49,439 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.ssm.start-session: calling handler <function add_cli_input_json at 0x101bfff80> | |
2019-11-07 13:18:49,440 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.ssm.start-session: calling handler <function unify_paging_params at 0x10212d3b0> | |
2019-11-07 13:18:49,451 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/1.16.260/libexec/lib/python3.7/site-packages/botocore/data/ssm/2014-11-06/paginators-1.json | |
2019-11-07 13:18:49,452 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.ssm.start-session: calling handler <function add_generate_skeleton at 0x10210ab90> | |
2019-11-07 13:18:49,452 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.ssm.start-session: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x103ef1d90>> | |
2019-11-07 13:18:49,452 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.ssm.start-session: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x103ef4910>> | |
2019-11-07 13:18:49,453 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.start-session.target: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10228c5d0> | |
2019-11-07 13:18:49,453 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.ssm.start-session: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10144c510> | |
2019-11-07 13:18:49,454 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'i-021dc9f489f95bbfc' for parameter "target": 'i-021dc9f489f95bbfc' | |
2019-11-07 13:18:49,454 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.start-session.document-name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10228c5d0> | |
2019-11-07 13:18:49,454 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.ssm.start-session: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10144c510> | |
2019-11-07 13:18:49,454 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'AWS-StartSSHSession' for parameter "document_name": 'AWS-StartSSHSession' | |
2019-11-07 13:18:49,454 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.start-session.parameters: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10228c5d0> | |
2019-11-07 13:18:49,454 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.ssm.start-session: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10144c510> | |
2019-11-07 13:18:49,454 - MainThread - awscli.argprocess - DEBUG - Parsing param --parameters as shorthand | |
2019-11-07 13:18:49,455 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'portNumber=22' for parameter "parameters": {'portNumber': ['22']} | |
2019-11-07 13:18:49,455 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.start-session.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10228c5d0> | |
2019-11-07 13:18:49,455 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.start-session.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10228c5d0> | |
2019-11-07 13:18:49,457 - MainThread - botocore.hooks - DEBUG - Event calling-command.ssm.start-session: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x103ef1d90>> | |
2019-11-07 13:18:49,457 - MainThread - botocore.hooks - DEBUG - Event calling-command.ssm.start-session: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x103ef4910>> | |
2019-11-07 13:18:49,457 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env | |
2019-11-07 13:18:49,457 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role | |
2019-11-07 13:18:49,457 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role-with-web-identity | |
2019-11-07 13:18:49,457 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file | |
2019-11-07 13:18:49,458 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials | |
2019-11-07 13:18:49,459 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/1.16.260/libexec/lib/python3.7/site-packages/botocore/data/endpoints.json | |
2019-11-07 13:18:49,477 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x101552e60> | |
2019-11-07 13:18:49,481 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.ssm: calling handler <function add_generate_presigned_url at 0x101650cb0> | |
2019-11-07 13:18:49,481 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None | |
2019-11-07 13:18:49,485 - MainThread - botocore.endpoint - DEBUG - Setting ssm timeout as (60, 60) | |
2019-11-07 13:18:49,486 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/1.16.260/libexec/lib/python3.7/site-packages/botocore/data/_retry.json | |
2019-11-07 13:18:49,486 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: ssm | |
2019-11-07 13:18:49,487 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.ssm.StartSession: calling handler <function generate_idempotent_uuid at 0x101681b90> | |
2019-11-07 13:18:49,488 - MainThread - botocore.hooks - DEBUG - Event before-call.ssm.StartSession: calling handler <function inject_api_version_header_if_needed at 0x101686680> | |
2019-11-07 13:18:49,488 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=StartSession) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AmazonSSM.StartSession', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'aws-cli/1.16.260 Python/3.7.4 Darwin/18.7.0 botocore/1.12.250'}, 'body': b'{"Target": "i-021dc9f489f95bbfc", "DocumentName": "AWS-StartSSHSession", "Parameters": {"portNumber": ["22"]}}', 'url': 'https://ssm.us-west-1.amazonaws.com/', 'context': {'client_region': 'us-west-1', 'client_config': <botocore.config.Config object at 0x10408a1d0>, 'has_streaming_input': False, 'auth_type': None}} | |
2019-11-07 13:18:49,488 - MainThread - botocore.hooks - DEBUG - Event request-created.ssm.StartSession: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x10408a190>> | |
2019-11-07 13:18:49,488 - MainThread - botocore.hooks - DEBUG - Event choose-signer.ssm.StartSession: calling handler <function set_operation_specific_signer at 0x101681a70> | |
2019-11-07 13:18:49,489 - MainThread - botocore.credentials - DEBUG - Credentials for role retrieved from cache. | |
2019-11-07 13:18:49,489 - MainThread - botocore.credentials - DEBUG - Retrieved credentials will expire at: 2019-11-07 22:11:58+00:00 | |
2019-11-07 13:18:49,490 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. | |
2019-11-07 13:18:49,490 - MainThread - botocore.auth - DEBUG - CanonicalRequest: | |
POST | |
/ | |
content-type:application/x-amz-json-1.1 | |
host:ssm.us-west-1.amazonaws.com | |
x-amz-date:20191107T211849Z | |
x-amz-security-token:FwoGZXIvYXdzEI///////////wEaDFgqigenUQvOrw397CK/AWyIsPF7CKwilyWbS7fsJdAIAM5U5+Z4/40MAaeYmpiBNaNBB6FeV8OZuFSsPkJBDa2O+p7oS8QC3iUg1hG1CoBJJfQ6blemhLGE2E8HNWE+Cl7E2bbOkeofrmyRCj37itXCS/sOwp0YoZzOpotWhxcV7gWh7X3buBDuTCIFR2rG1g+Ag6mmWWSeVjwpd65CoY7Ea4jvABmlQhTSOf3WnicuvkCNWQph4saMZlnh8jM+tDbsl+IqoAdn3VRlZjSfKJ6Rku4FMi0Ig3k8NjvowJnq3K0TxZsSkPHABaHCihYZqPAAqd/prTfJJmViiaDkahWDO2g= | |
x-amz-target:AmazonSSM.StartSession | |
content-type;host;x-amz-date;x-amz-security-token;x-amz-target | |
b85d2f5dd85c0b70a5838bd0a10ff8095577e973fa9f9007c90446eabf093c56 | |
2019-11-07 13:18:49,490 - MainThread - botocore.auth - DEBUG - StringToSign: | |
AWS4-HMAC-SHA256 | |
20191107T211849Z | |
20191107/us-west-1/ssm/aws4_request | |
3558b80b2af886f07979539158b77c421652348cd079d6434c9faa065ce4371d | |
2019-11-07 13:18:49,490 - MainThread - botocore.auth - DEBUG - Signature: | |
2cb1ffc293e9db89660b3645ebbf7a7a88018c5cd181f3721abfb6a38d19ddc9 | |
2019-11-07 13:18:49,490 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://ssm.us-west-1.amazonaws.com/, headers={'X-Amz-Target': b'AmazonSSM.StartSession', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'aws-cli/1.16.260 Python/3.7.4 Darwin/18.7.0 botocore/1.12.250', 'X-Amz-Date': b'20191107T211849Z', 'X-Amz-Security-Token': b'FwoGZXIvYXdzEI///////////wEaDFgqigenUQvOrw397CK/AWyIsPF7CKwilyWbS7fsJdAIAM5U5+Z4/40MAaeYmpiBNaNBB6FeV8OZuFSsPkJBDa2O+p7oS8QC3iUg1hG1CoBJJfQ6blemhLGE2E8HNWE+Cl7E2bbOkeofrmyRCj37itXCS/sOwp0YoZzOpotWhxcV7gWh7X3buBDuTCIFR2rG1g+Ag6mmWWSeVjwpd65CoY7Ea4jvABmlQhTSOf3WnicuvkCNWQph4saMZlnh8jM+tDbsl+IqoAdn3VRlZjSfKJ6Rku4FMi0Ig3k8NjvowJnq3K0TxZsSkPHABaHCihYZqPAAqd/prTfJJmViiaDkahWDO2g=', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIA3RHL5QFA5NOGUDD2/20191107/us-west-1/ssm/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=2cb1ffc293e9db89660b3645ebbf7a7a88018c5cd181f3721abfb6a38d19ddc9', 'Content-Length': '110'}> | |
2019-11-07 13:18:49,491 - MainThread - urllib3.util.retry - DEBUG - Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None) | |
2019-11-07 13:18:49,491 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): ssm.us-west-1.amazonaws.com:443 | |
2019-11-07 13:18:49,964 - MainThread - urllib3.connectionpool - DEBUG - https://ssm.us-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 642 | |
2019-11-07 13:18:49,964 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'a5b6012c-f770-4972-8d7e-d4415f041707', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '642', 'Date': 'Thu, 07 Nov 2019 21:18:49 GMT'} | |
2019-11-07 13:18:49,965 - MainThread - botocore.parsers - DEBUG - Response body: | |
b'{"SessionId":"botocore-session-1573161117-0ed700036c590acdd","StreamUrl":"wss://ssmmessages.us-west-1.amazonaws.com/v1/data-channel/botocore-session-1573161117-0ed700036c590acdd?role=publish_subscribe","TokenValue":"AAEAAcJFV1ArfaLpR07OsHuk6ucGWcRxc/FYHHOP0KTBo9PpAAAAAF3EijkdYFzmGSL7S6s+SMIjXXXIr+sMjkJ3+lgYIW+fRE2bssf/YYf5Yocy8fqwHKQ/mh2QbWOeebv6DEMXoKHCArMvktyFvWtGHBRcROChSr8JMWmtOoSaMmI/c4B7WDeX6MAw2TSnsUNOrDn1zQ0A7WLb82hcNxAg2gV4Ru6CeL8A+VmBlqXE4DTb50In9Vxpb0yF4EGdE3eui5DWgYdK7qpVlpt3+/GVhzlSV9Ds+TpJDtjl8+mAlbrq2hHZz5ycZ7BwwG6CSGNRJdx5png0618I1htJxSo/JWuekDy2DsY4OY+0PrwRdFOkv5oW3RKSUdLeleEQSe4o22gUDZwOe0VYetqjoyTqcdn9Bol4y974Bw=="}' | |
2019-11-07 13:18:49,965 - MainThread - botocore.hooks - DEBUG - Event needs-retry.ssm.StartSession: calling handler <botocore.retryhandler.RetryHandler object at 0x10408a650> | |
2019-11-07 13:18:49,965 - MainThread - botocore.retryhandler - DEBUG - No retry needed. | |
debug1: ssh_exchange_identification: | |
debug1: ssh_exchange_identification: Starting session with SessionId: botocore-session-1573161117-0ed700036c590acdd | |
debug1: ssh_exchange_identification: | |
debug1: ssh_exchange_identification: 6,diffie-hellman-group14-sha1 | |
debug1: ssh_exchange_identification: aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com | |
debug1: ssh_exchange_identification: 2-256,hmac-sha2-512,hmac-sha1 | |
^[debug1: ssh_exchange_identification: zlib@openssh.com | |
debug1: ssh_exchange_identification: | |
debug1: ssh_exchange_identification: Exiting session with sessionId: botocore-session-1573161117-0ed700036c590acdd. | |
debug1: ssh_exchange_identification: | |
ssh_exchange_identification: Connection closed by remote host | |
✘-255 ~/src/ansible [master|✚ 1…1⚑ 3]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment