Getting error in port forwarding using Ubuntu WSL #7990
Unanswered
mrF1Newbie
asked this question in
Q&A
Replies: 2 comments
-
@mrF1Newbie, thanks for reaching out. I see you closed this discussion; does that mean you don't need help with this anymore? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to perform this command: ./port_forward.sh 3000:connector-.dev..private:3000
but I am getting the error below:
Forwarding 3000:connector-.dev..private:3000 via instance , exit or ctrl-c to close ...$u |cut -d: -f6) || exit 1\n install -d -m700 -oec2-user $ {x}/.ssh; grep 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session' ${x}/.ssh/authorized_keys && exit 1\n printf 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session'|tee -a ${x}/.ssh/authorized_keys && sleep 15\n sed -i s,'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session',, ${x}/.ssh/authorized_keys"', '--comment', 'temporary ssm ssh access', '--debug']$u |cut -d: -f6) || exit 1\n install -d -m700 -oec2-user $ {x}/.ssh; grep 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session' ${x}/.ssh/authorized_keys && exit 1\n printf 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session'|tee -a ${x}/.ssh/authorized_keys && sleep 15\n sed -i s,'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session',, ${x}/.ssh/authorized_keys"', '--comment', 'temporary ssm ssh access', '--debug']$u |cut -d: -f6) || exit 1\n install -d -m700 -oec2-user $ {x}/.ssh; grep 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session' ${x}/.ssh/authorized_keys && exit 1\n printf 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session'|tee -a ${x}/.ssh/authorized_keys && sleep 15\n sed -i s,'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session',, ${x}/.ssh/authorized_keys"' for parameter "parameters": {'commands': ["u=$ (getent passwd ec2-user) && x=$(echo $u |cut -d: -f6) || exit 1\n install -d -m700 -oec2-user $ {x}/.ssh; grep 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session' ${x}/.ssh/authorized_keys && exit 1\n printf 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session'|tee -a ${x}/.ssh/authorized_keys && sleep 15\n sed -i s,'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session',, ${x}/.ssh/authorized_keys"]}$u |cut -d: -f6) || exit 1\n install -d -m700 -oec2-user $ {x}/.ssh; grep 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session' ${x}/.ssh/authorized_keys && exit 1\n printf 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session'|tee -a ${x}/.ssh/authorized_keys && sleep 15\n sed -i s,'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session',, ${x}/.ssh/authorized_keys"]}}', 'url': 'https://ssm.ap-southeast-2.amazonaws.com/', 'context': {'client_region': 'ap-southeast-2', 'client_config': <botocore.config.Config object at 0x7ff3b9701c50>, 'has_streaming_input': False, 'auth_type': None}}
2023-06-20 16:47:13,475 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.12.1 Python/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.22
2023-06-20 16:47:13,476 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['ssm', 'send-command', '--instance-ids', '', '--document-name', 'AWS-RunShellScript', '--parameters', 'commands= "u=$(getent passwd ec2-user) && x=$(echo
2023-06-20 16:47:13,480 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_s3 at 0x7ff3bcbc7880>
2023-06-20 16:47:13,480 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_ddb at 0x7ff3bcf11080>
2023-06-20 16:47:13,481 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.configure.configure.ConfigureCommand'>>
2023-06-20 16:47:13,481 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function change_name at 0x7ff3bd373380>
2023-06-20 16:47:13,481 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function change_name at 0x7ff3bd390a40>
2023-06-20 16:47:13,481 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function alias_opsworks_cm at 0x7ff3bcbde340>
2023-06-20 16:47:13,481 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_history_commands at 0x7ff3bcf4ba60>
2023-06-20 16:47:13,481 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.devcommands.CLIDevCommand'>>
2023-06-20 16:47:13,481 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_waiters at 0x7ff3bcbde200>
2023-06-20 16:47:13,481 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method AliasSubCommandInjector.on_building_command_table of <awscli.alias.AliasSubCommandInjector object at 0x7ff3bc582ed0>>
2023-06-20 16:47:13,481 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.12.1/dist/awscli/data/cli.json
2023-06-20 16:47:13,482 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_types at 0x7ff3bcb194e0>
2023-06-20 16:47:13,482 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function no_sign_request at 0x7ff3bcb19800>
2023-06-20 16:47:13,482 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_verify_ssl at 0x7ff3bcb19760>
2023-06-20 16:47:13,482 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_cli_read_timeout at 0x7ff3bcb19940>
2023-06-20 16:47:13,482 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_cli_connect_timeout at 0x7ff3bcb198a0>
2023-06-20 16:47:13,482 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <built-in method update of dict object at 0x7ff3bc580040>
2023-06-20 16:47:13,483 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.12.1 Python/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.22 prompt/off
2023-06-20 16:47:13,483 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['ssm', 'send-command', '--instance-ids', '', '--document-name', 'AWS-RunShellScript', '--parameters', 'commands= "u=$(getent passwd ec2-user) && x=$(echo
2023-06-20 16:47:13,483 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_timestamp_parser at 0x7ff3bcbdc220>
2023-06-20 16:47:13,483 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x7ff3bdbf5440>
2023-06-20 16:47:13,483 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_binary_formatter at 0x7ff3bc5477e0>
2023-06-20 16:47:13,483 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function no_pager_handler at 0x7ff3bdfebce0>
2023-06-20 16:47:13,483 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x7ff3bd708d60>
2023-06-20 16:47:13,484 - MainThread - botocore.utils - DEBUG - IMDS ENDPOINT: http://169.254.169.254/
2023-06-20 16:47:13,485 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x7ff3bcf48360>
2023-06-20 16:47:13,485 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_json_file_cache at 0x7ff3bcf09300>
2023-06-20 16:47:13,490 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.12.1/dist/awscli/botocore/data/ssm/2014-11-06/service-2.json
2023-06-20 16:47:13,502 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ssm: calling handler <function add_custom_start_session at 0x7ff3bcbf42c0>
2023-06-20 16:47:13,502 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ssm: calling handler <function add_waiters at 0x7ff3bcbde200>
2023-06-20 16:47:13,507 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.12.1/dist/awscli/botocore/data/ssm/2014-11-06/waiters-2.json
2023-06-20 16:47:13,507 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ssm: calling handler <bound method AliasSubCommandInjector.on_building_command_table of <awscli.alias.AliasSubCommandInjector object at 0x7ff3bc582ed0>>
2023-06-20 16:47:13,508 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('instance-ids', <awscli.arguments.ListArgument object at 0x7ff3bc166bd0>), ('targets', <awscli.arguments.ListArgument object at 0x7ff3bc166f10>), ('document-name', <awscli.arguments.CLIArgument object at 0x7ff3bc1670d0>), ('document-version', <awscli.arguments.CLIArgument object at 0x7ff3bc167210>), ('document-hash', <awscli.arguments.CLIArgument object at 0x7ff3bc167310>), ('document-hash-type', <awscli.arguments.CLIArgument object at 0x7ff3bc167510>), ('timeout-seconds', <awscli.arguments.CLIArgument object at 0x7ff3bc167590>), ('comment', <awscli.arguments.CLIArgument object at 0x7ff3bc167710>), ('parameters', <awscli.arguments.CLIArgument object at 0x7ff3bc167890>), ('output-s3-region', <awscli.arguments.CLIArgument object at 0x7ff3bc167910>), ('output-s3-bucket-name', <awscli.arguments.CLIArgument object at 0x7ff3bc167b90>), ('output-s3-key-prefix', <awscli.arguments.CLIArgument object at 0x7ff3bc167b50>), ('max-concurrency', <awscli.arguments.CLIArgument object at 0x7ff3bc167d50>), ('max-errors', <awscli.arguments.CLIArgument object at 0x7ff3bc167e90>), ('service-role-arn', <awscli.arguments.CLIArgument object at 0x7ff3bc167f50>), ('notification-config', <awscli.arguments.CLIArgument object at 0x7ff3bc164090>), ('cloud-watch-output-config', <awscli.arguments.CLIArgument object at 0x7ff3bc164110>), ('alarm-configuration', <awscli.arguments.CLIArgument object at 0x7ff3bc164210>)])
2023-06-20 16:47:13,508 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.ssm.send-command: calling handler <function add_streaming_output_arg at 0x7ff3bcbdc720>
2023-06-20 16:47:13,508 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.ssm.send-command: calling handler <function add_cli_input_json at 0x7ff3bd7096c0>
2023-06-20 16:47:13,508 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.ssm.send-command: calling handler <function add_cli_input_yaml at 0x7ff3bd709760>
2023-06-20 16:47:13,508 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.ssm.send-command: calling handler <function unify_paging_params at 0x7ff3bcf116c0>
2023-06-20 16:47:13,512 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.12.1/dist/awscli/botocore/data/ssm/2014-11-06/paginators-1.json
2023-06-20 16:47:13,512 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.ssm.send-command: calling handler <function add_generate_skeleton at 0x7ff3bcfffce0>
2023-06-20 16:47:13,513 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.ssm.send-command: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputJSONArgument object at 0x7ff3bc164510>>
2023-06-20 16:47:13,513 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.ssm.send-command: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputYAMLArgument object at 0x7ff3bc141c10>>
2023-06-20 16:47:13,513 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.ssm.send-command: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7ff3bc154590>>
2023-06-20 16:47:13,513 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ssm_send-command: calling handler <function add_waiters at 0x7ff3bcbde200>
2023-06-20 16:47:13,513 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ssm_send-command: calling handler <bound method AliasSubCommandInjector.on_building_command_table of <awscli.alias.AliasSubCommandInjector object at 0x7ff3bc582ed0>>
2023-06-20 16:47:13,513 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.instance-ids: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.ssm.send-command: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7ff3bdb31390>
2023-06-20 16:47:13,514 - MainThread - awscli.arguments - DEBUG - Unpacked value of [''] for parameter "instance_ids": ['']
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.targets: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.document-name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.ssm.send-command: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7ff3bdb31390>
2023-06-20 16:47:13,514 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'AWS-RunShellScript' for parameter "document_name": 'AWS-RunShellScript'
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.document-version: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.document-hash: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.document-hash-type: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.timeout-seconds: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.comment: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.ssm.send-command: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7ff3bdb31390>
2023-06-20 16:47:13,514 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'temporary ssm ssh access' for parameter "comment": 'temporary ssm ssh access'
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.parameters: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.ssm.send-command: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7ff3bdb31390>
2023-06-20 16:47:13,514 - MainThread - awscli.argprocess - DEBUG - Parsing param --parameters as shorthand
2023-06-20 16:47:13,514 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'commands= "u=$(getent passwd ec2-user) && x=$(echo
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.output-s3-region: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,514 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.output-s3-bucket-name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.output-s3-key-prefix: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.max-concurrency: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.max-errors: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.service-role-arn: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.notification-config: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.cloud-watch-output-config: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.alarm-configuration: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.cli-input-yaml: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.ssm.send-command.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7ff3bdb30d10>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event calling-command.ssm.send-command: calling handler <bound method CliInputArgument.add_to_call_parameters of <awscli.customizations.cliinput.CliInputJSONArgument object at 0x7ff3bc164510>>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event calling-command.ssm.send-command: calling handler <bound method CliInputArgument.add_to_call_parameters of <awscli.customizations.cliinput.CliInputYAMLArgument object at 0x7ff3bc141c10>>
2023-06-20 16:47:13,515 - MainThread - botocore.hooks - DEBUG - Event calling-command.ssm.send-command: calling handler <bound method GenerateCliSkeletonArgument.generate_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7ff3bc154590>>
2023-06-20 16:47:13,515 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2023-06-20 16:47:13,515 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2023-06-20 16:47:13,515 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role-with-web-identity
2023-06-20 16:47:13,515 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: sso
2023-06-20 16:47:13,516 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.12.1/dist/awscli/botocore/data/endpoints.json
2023-06-20 16:47:13,525 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x7ff3c03f45e0>
2023-06-20 16:47:13,529 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.12.1/dist/awscli/botocore/data/ssm/2014-11-06/endpoint-rule-set-1.json
2023-06-20 16:47:13,530 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.12.1/dist/awscli/botocore/data/partitions.json
2023-06-20 16:47:13,532 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.ssm: calling handler <function add_generate_presigned_url at 0x7ff3c03ae520>
2023-06-20 16:47:13,534 - MainThread - botocore.endpoint - DEBUG - Setting ssm timeout as (60, 60)
2023-06-20 16:47:13,535 - MainThread - botocore.regions - DEBUG - Calling endpoint provider with parameters: {'Region': 'ap-southeast-2', 'UseDualStack': False, 'UseFIPS': False}
2023-06-20 16:47:13,535 - MainThread - botocore.regions - DEBUG - Endpoint provider result: https://ssm.ap-southeast-2.amazonaws.com
2023-06-20 16:47:13,535 - MainThread - botocore.hooks - DEBUG - Event provide-client-params.ssm.SendCommand: calling handler <function base64_decode_input_blobs at 0x7ff3bc547880>
2023-06-20 16:47:13,535 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.ssm.SendCommand: calling handler <function generate_idempotent_uuid at 0x7ff3bff780e0>
2023-06-20 16:47:13,535 - MainThread - botocore.hooks - DEBUG - Event before-call.ssm.SendCommand: calling handler <function inject_api_version_header_if_needed at 0x7ff3bff79bc0>
2023-06-20 16:47:13,535 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=SendCommand) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AmazonSSM.SendCommand', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'aws-cli/2.12.1 Python/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.22 prompt/off command/ssm.send-command'}, 'body': b'{"InstanceIds": [""], "DocumentName": "AWS-RunShellScript", "Comment": "temporary ssm ssh access", "Parameters": {"commands": ["u=$(getent passwd ec2-user) && x=$(echo
2023-06-20 16:47:13,535 - MainThread - botocore.hooks - DEBUG - Event request-created.ssm.SendCommand: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7ff3bc588d10>>
2023-06-20 16:47:13,535 - MainThread - botocore.hooks - DEBUG - Event choose-signer.ssm.SendCommand: calling handler <function set_operation_specific_signer at 0x7ff3bff5ff60>
2023-06-20 16:47:13,536 - MainThread - botocore.credentials - DEBUG - Credentials for role retrieved from cache.
2023-06-20 16:47:13,536 - MainThread - botocore.credentials - DEBUG - Retrieved credentials will expire at: 2023-06-20 08:34:46+00:00
2023-06-20 16:47:13,536 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2023-06-20 16:47:13,536 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/
content-type:application/x-amz-json-1.1
host:ssm.ap-southeast-2.amazonaws.com
x-amz-date:20230620T064713Z
x-amz-security-token:IQoJb3JpZ2luX2VjEEUaDmFwLXNvdXRoZWFzdC0yIkcwRQIhAKDR6mAZ8HGYNTm8BYNRL5eXBOlfHDyamkNJpNcMqSBRAiB3JVTH9lOsHTl2ityNOybeA1uw3knvfZe9J6qL5j3RziqVAwie//////////8BEAQaDDU4MDAyMTc5ODU3NyIM/BbYQshEAia52D0mKukCs2fsp9M8yhExeZ/lmegvXd+i4VyagoFaQihFtbl9K0sJxtNJ5YzFclWDVOC2e3gLvyZ1A1BpFjLbhFlHpbBusyVdtdhmczVCiZ+hWejZZEUQKvJWv44mdeHULdFV8dfqvCV87bl9ojx18N6KEaNV/cl9wT1MirSYdwGd0locPNlqY5QDggZX45FsN937RC/ZhuS9nWpfdL0GJeIMgvjqAhWN3i7nQUwbifSnbuBEUgVmeBptQlbyN5KeEgaTJkd8UmrMghIPgCQ4vrj20ptDym2h4GoZImipioekYqrLDh4Mo82UwlSIbUQf0r+ICvj/oU5ZFLObwR6gmk1nFPuQCRBoLcQWigrXe7TT1G0BAsfVnAq6P8isLw7ScRtl8dplQ9aT5NSoaHnaNHzzjEUQGX2lHUR0lgNQSiR62WT/uMWbu+r4rjKcVHcZSiEsysgZAcxfHAXEdRvFJ0b6VEfFGcIzgopPD/BIFzDn2MSkBjqmAWdxXhVZobHEdAVxGcqxOp8HskIsKrB0/agVU5aJUeru+o6wU5mStnPpKON5H9Emx5CcutyLrz/R0L4j3jZBHQEN5NmzM8vW8m7e7J/kKlN8uu6YRCQk9at9/oJUjZTbhnjvncZbG+05bfwhn7FPMj1z2iG9yFHhs9YGx8hrlzMmlguh/Fm9UvRSFe5tIZap6kBV31FPRJWFtfL9QjiIWs48GGcGXJs=
x-amz-target:AmazonSSM.SendCommand
content-type;host;x-amz-date;x-amz-security-token;x-amz-target
724304a544aba773307c1ef6a67131b9468ec5e546ac51eebd6733bba8e56175
2023-06-20 16:47:13,536 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20230620T064713Z
20230620/ap-southeast-2/ssm/aws4_request
0169e092a4e1647f225c4088dd17f4937e3a5f839be31f44adcba4c7f67c03a9
2023-06-20 16:47:13,536 - MainThread - botocore.auth - DEBUG - Signature:
764bd759e732dda59f31074c701093782be356707744bac064173dee53c52893
2023-06-20 16:47:13,537 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://ssm.ap-southeast-2.amazonaws.com/, headers={'X-Amz-Target': b'AmazonSSM.SendCommand', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'aws-cli/2.12.1 Python/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.22 prompt/off command/ssm.send-command', 'X-Amz-Date': b'20230620T064713Z', 'X-Amz-Security-Token': b'IQoJb3JpZ2luX2VjEEUaDmFwLXNvdXRoZWFzdC0yIkcwRQIhAKDR6mAZ8HGYNTm8BYNRL5eXBOlfHDyamkNJpNcMqSBRAiB3JVTH9lOsHTl2ityNOybeA1uw3knvfZe9J6qL5j3RziqVAwie//////////8BEAQaDDU4MDAyMTc5ODU3NyIM/BbYQshEAia52D0mKukCs2fsp9M8yhExeZ/lmegvXd+i4VyagoFaQihFtbl9K0sJxtNJ5YzFclWDVOC2e3gLvyZ1A1BpFjLbhFlHpbBusyVdtdhmczVCiZ+hWejZZEUQKvJWv44mdeHULdFV8dfqvCV87bl9ojx18N6KEaNV/cl9wT1MirSYdwGd0locPNlqY5QDggZX45FsN937RC/ZhuS9nWpfdL0GJeIMgvjqAhWN3i7nQUwbifSnbuBEUgVmeBptQlbyN5KeEgaTJkd8UmrMghIPgCQ4vrj20ptDym2h4GoZImipioekYqrLDh4Mo82UwlSIbUQf0r+ICvj/oU5ZFLObwR6gmk1nFPuQCRBoLcQWigrXe7TT1G0BAsfVnAq6P8isLw7ScRtl8dplQ9aT5NSoaHnaNHzzjEUQGX2lHUR0lgNQSiR62WT/uMWbu+r4rjKcVHcZSiEsysgZAcxfHAXEdRvFJ0b6VEfFGcIzgopPD/BIFzDn2MSkBjqmAWdxXhVZobHEdAVxGcqxOp8HskIsKrB0/agVU5aJUeru+o6wU5mStnPpKON5H9Emx5CcutyLrz/R0L4j3jZBHQEN5NmzM8vW8m7e7J/kKlN8uu6YRCQk9at9/oJUjZTbhnjvncZbG+05bfwhn7FPMj1z2iG9yFHhs9YGx8hrlzMmlguh/Fm9UvRSFe5tIZap6kBV31FPRJWFtfL9QjiIWs48GGcGXJs=', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIAYOC76I2YZCK2GTPP/20230620/ap-southeast-2/ssm/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=764bd759e732dda59f31074c701093782be356707744bac064173dee53c52893', 'Content-Length': '698'}>
2023-06-20 16:47:13,537 - MainThread - botocore.httpsession - DEBUG - Certificate path: /usr/local/aws-cli/v2/2.12.1/dist/awscli/botocore/cacert.pem
2023-06-20 16:47:13,537 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): ssm.ap-southeast-2.amazonaws.com:443
Connection timed out during banner exchange
Connection to UNKNOWN port 65535 timed out
root@LAPTOP-VPV77LD5:~# 2023-06-20 16:47:28,553 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
File "urllib3/connection.py", line 174, in _new_conn
File "urllib3/util/connection.py", line 72, in create_connection
File "socket.py", line 962, in getaddrinfo
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "awscli/botocore/httpsession.py", line 448, in send
File "urllib3/connectionpool.py", line 798, in urlopen
File "urllib3/util/retry.py", line 525, in increment
File "urllib3/packages/six.py", line 770, in reraise
File "urllib3/connectionpool.py", line 714, in urlopen
File "urllib3/connectionpool.py", line 403, in _make_request
File "urllib3/connectionpool.py", line 1053, in _validate_conn
File "urllib3/connection.py", line 363, in connect
File "urllib3/connection.py", line 186, in _new_conn
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPSConnection object at 0x7ff3bc1673d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "awscli/botocore/endpoint.py", line 199, in _do_get_response
File "awscli/botocore/endpoint.py", line 271, in _send
File "awscli/botocore/httpsession.py", line 477, in send
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://ssm.ap-southeast-2.amazonaws.com/"
2023-06-20 16:47:28,557 - MainThread - botocore.hooks - DEBUG - Event needs-retry.ssm.SendCommand: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7ff3b9703b90>>
2023-06-20 16:47:28,558 - MainThread - botocore.retries.standard - DEBUG - Retry needed, retrying request after delay of: 0.43612336885997594
2023-06-20 16:47:28,558 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.43612336885997594 seconds
2023-06-20 16:47:28,995 - MainThread - botocore.hooks - DEBUG - Event request-created.ssm.SendCommand: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7ff3bc588d10>>
2023-06-20 16:47:28,995 - MainThread - botocore.hooks - DEBUG - Event choose-signer.ssm.SendCommand: calling handler <function set_operation_specific_signer at 0x7ff3bff5ff60>
2023-06-20 16:47:28,997 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2023-06-20 16:47:28,997 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/
content-type:application/x-amz-json-1.1
host:ssm.ap-southeast-2.amazonaws.com
x-amz-date:20230620T064728Z
x-amz-security-token:IQoJb3JpZ2luX2VjEEUaDmFwLXNvdXRoZWFzdC0yIkcwRQIhAKDR6mAZ8HGYNTm8BYNRL5eXBOlfHDyamkNJpNcMqSBRAiB3JVTH9lOsHTl2ityNOybeA1uw3knvfZe9J6qL5j3RziqVAwie//////////8BEAQaDDU4MDAyMTc5ODU3NyIM/BbYQshEAia52D0mKukCs2fsp9M8yhExeZ/lmegvXd+i4VyagoFaQihFtbl9K0sJxtNJ5YzFclWDVOC2e3gLvyZ1A1BpFjLbhFlHpbBusyVdtdhmczVCiZ+hWejZZEUQKvJWv44mdeHULdFV8dfqvCV87bl9ojx18N6KEaNV/cl9wT1MirSYdwGd0locPNlqY5QDggZX45FsN937RC/ZhuS9nWpfdL0GJeIMgvjqAhWN3i7nQUwbifSnbuBEUgVmeBptQlbyN5KeEgaTJkd8UmrMghIPgCQ4vrj20ptDym2h4GoZImipioekYqrLDh4Mo82UwlSIbUQf0r+ICvj/oU5ZFLObwR6gmk1nFPuQCRBoLcQWigrXe7TT1G0BAsfVnAq6P8isLw7ScRtl8dplQ9aT5NSoaHnaNHzzjEUQGX2lHUR0lgNQSiR62WT/uMWbu+r4rjKcVHcZSiEsysgZAcxfHAXEdRvFJ0b6VEfFGcIzgopPD/BIFzDn2MSkBjqmAWdxXhVZobHEdAVxGcqxOp8HskIsKrB0/agVU5aJUeru+o6wU5mStnPpKON5H9Emx5CcutyLrz/R0L4j3jZBHQEN5NmzM8vW8m7e7J/kKlN8uu6YRCQk9at9/oJUjZTbhnjvncZbG+05bfwhn7FPMj1z2iG9yFHhs9YGx8hrlzMmlguh/Fm9UvRSFe5tIZap6kBV31FPRJWFtfL9QjiIWs48GGcGXJs=
x-amz-target:AmazonSSM.SendCommand
content-type;host;x-amz-date;x-amz-security-token;x-amz-target$u |cut -d: -f6) || exit 1\n install -d -m700 -oec2-user $ {x}/.ssh; grep 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session' ${x}/.ssh/authorized_keys && exit 1\n printf 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session'|tee -a ${x}/.ssh/authorized_keys && sleep 15\n sed -i s,'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsQ/WmJTSV8klqKkqYCZ39A+9Cf5o1Qr3YoCiyREM ssm-ssh-session',, ${x}/.ssh/authorized_keys"]},"RequestedDateTime":1.687243665709E9,"ServiceRole":"","Status":"Pending","StatusDetails":"Pending","TargetCount":1,"Targets":[],"TimeoutSeconds":3600,"TriggeredAlarms":[]}}'
724304a544aba773307c1ef6a67131b9468ec5e546ac51eebd6733bba8e56175
2023-06-20 16:47:28,997 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20230620T064728Z
20230620/ap-southeast-2/ssm/aws4_request
0600583d8512ed22182c0edcabc9788fc4385182226add120fa3d0fc6c36d20d
2023-06-20 16:47:28,997 - MainThread - botocore.auth - DEBUG - Signature:
3fd70f90612b372f98f99ac51691158f70fada30ec2b8578bb4ce39b3dbcd289
2023-06-20 16:47:28,998 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://ssm.ap-southeast-2.amazonaws.com/, headers={'X-Amz-Target': b'AmazonSSM.SendCommand', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'aws-cli/2.12.1 Python/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.22 prompt/off command/ssm.send-command', 'X-Amz-Date': b'20230620T064728Z', 'X-Amz-Security-Token': b'IQoJb3JpZ2luX2VjEEUaDmFwLXNvdXRoZWFzdC0yIkcwRQIhAKDR6mAZ8HGYNTm8BYNRL5eXBOlfHDyamkNJpNcMqSBRAiB3JVTH9lOsHTl2ityNOybeA1uw3knvfZe9J6qL5j3RziqVAwie//////////8BEAQaDDU4MDAyMTc5ODU3NyIM/BbYQshEAia52D0mKukCs2fsp9M8yhExeZ/lmegvXd+i4VyagoFaQihFtbl9K0sJxtNJ5YzFclWDVOC2e3gLvyZ1A1BpFjLbhFlHpbBusyVdtdhmczVCiZ+hWejZZEUQKvJWv44mdeHULdFV8dfqvCV87bl9ojx18N6KEaNV/cl9wT1MirSYdwGd0locPNlqY5QDggZX45FsN937RC/ZhuS9nWpfdL0GJeIMgvjqAhWN3i7nQUwbifSnbuBEUgVmeBptQlbyN5KeEgaTJkd8UmrMghIPgCQ4vrj20ptDym2h4GoZImipioekYqrLDh4Mo82UwlSIbUQf0r+ICvj/oU5ZFLObwR6gmk1nFPuQCRBoLcQWigrXe7TT1G0BAsfVnAq6P8isLw7ScRtl8dplQ9aT5NSoaHnaNHzzjEUQGX2lHUR0lgNQSiR62WT/uMWbu+r4rjKcVHcZSiEsysgZAcxfHAXEdRvFJ0b6VEfFGcIzgopPD/BIFzDn2MSkBjqmAWdxXhVZobHEdAVxGcqxOp8HskIsKrB0/agVU5aJUeru+o6wU5mStnPpKON5H9Emx5CcutyLrz/R0L4j3jZBHQEN5NmzM8vW8m7e7J/kKlN8uu6YRCQk9at9/oJUjZTbhnjvncZbG+05bfwhn7FPMj1z2iG9yFHhs9YGx8hrlzMmlguh/Fm9UvRSFe5tIZap6kBV31FPRJWFtfL9QjiIWs48GGcGXJs=', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIAYOC76I2YZCK2GTPP/20230620/ap-southeast-2/ssm/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=3fd70f90612b372f98f99ac51691158f70fada30ec2b8578bb4ce39b3dbcd289', 'Content-Length': '698'}>
2023-06-20 16:47:28,998 - MainThread - botocore.httpsession - DEBUG - Certificate path: /usr/local/aws-cli/v2/2.12.1/dist/awscli/botocore/cacert.pem
2023-06-20 16:47:28,999 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (2): ssm.ap-southeast-2.amazonaws.com:443
2023-06-20 16:47:44,640 - MainThread - urllib3.connectionpool - DEBUG - https://ssm.ap-southeast-2.amazonaws.com:443 "POST / HTTP/1.1" 200 1463
2023-06-20 16:47:44,640 - MainThread - botocore.parsers - DEBUG - Response headers: {'Server': 'Server', 'Date': 'Tue, 20 Jun 2023 06:47:45 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '1463', 'Connection': 'keep-alive', 'x-amzn-RequestId': '1d751f7e-345f-40ea-abe1-00bab1de7318'}
2023-06-20 16:47:44,640 - MainThread - botocore.parsers - DEBUG - Response body:
b'{"Command":{"AlarmConfiguration":{"Alarms":[],"IgnorePollAlarmFailure":false},"ClientName":"","ClientSourceId":"","CloudWatchOutputConfig":{"CloudWatchLogGroupName":"","CloudWatchOutputEnabled":false},"CommandId":"240ed882-69dd-4b2b-8c7b-8b49661be53f","Comment":"temporary ssm ssh access","CompletedCount":0,"DeliveryTimedOutCount":0,"DocumentName":"AWS-RunShellScript","DocumentVersion":"$DEFAULT","ErrorCount":0,"ExpiresAfter":1.687250865709E9,"InstanceIds":[""],"Interactive":false,"MaxConcurrency":"50","MaxErrors":"0","NotificationConfig":{"NotificationArn":"","NotificationEvents":[],"NotificationType":""},"OutputS3BucketName":"","OutputS3KeyPrefix":"","OutputS3Region":"ap-southeast-2","Parameters":{"commands":["u=$(getent passwd ec2-user) && x=$(echo
2023-06-20 16:47:44,642 - MainThread - botocore.hooks - DEBUG - Event needs-retry.ssm.SendCommand: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7ff3b9703b90>>
2023-06-20 16:47:44,642 - MainThread - botocore.retries.standard - DEBUG - Not retrying request.
2023-06-20 16:47:44,642 - MainThread - botocore.hooks - DEBUG - Event after-call.ssm.SendCommand: calling handler <bound method RetryQuotaChecker.release_retry_quota of <botocore.retries.standard.RetryQuotaChecker object at 0x7ff3b9703450>>2023-06-20 16:47:44,642 - MainThread - awscli.formatter - DEBUG - RequestId: 1d751f7e-345f-40ea-abe1-00bab1de7318
Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
Beta Was this translation helpful? Give feedback.
All reactions