Skip to content

Instantly share code, notes, and snippets.

@icy
Created June 19, 2018 11:54
Show Gist options
  • Save icy/6d49238803260d85820c7386065f2b9d to your computer and use it in GitHub Desktop.
Save icy/6d49238803260d85820c7386065f2b9d to your computer and use it in GitHub Desktop.
ssalt_cloud_test_pr_48048.sh
$ cat /etc/salt//cloud.providers.d/aws-dev.conf
aws-dev-default:
minion:
master: saltmaster.example.net
id: 'foo'
key: 'm+bar'
role_arn: 'arn:aws:iam::02415096xxxx:role/DeveloperCrossAccountAccessRole'
ssh_interface: private_ips
private_key: /root/.ssh/id_rsa
keyname: salt_testing
location: ap-southeast-1
availability_zone: ap-southeast-1a
ssh_username: ubuntu
driver: ec2
ssh_gateway: ssh-gateway.example.net
ssh_gateway_port: 22
ssh_gateway_username: ubuntu
ssh_gateway_private_key: /root/.ssh/id_rsa
ssh_gateway_command: "-W %h:%p"
$ salt-cloud -p test-dev testing-7013.example.net -l debug
[DEBUG ] Reading configuration from /etc/salt/cloud
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Changed git to gitfs in master opts' fileserver_backend list
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: jenkins.example.net
[DEBUG ] Missing configuration file: /etc/salt/cloud.providers
[DEBUG ] Including configuration from '/etc/salt/cloud.providers.d/aws-dev.conf'
[DEBUG ] Reading configuration from /etc/salt/cloud.providers.d/aws-dev.conf
[DEBUG ] Missing configuration file: /etc/salt/cloud.profiles
[DEBUG ] Including configuration from '/etc/salt/cloud.profiles.d/dev1.conf'
[DEBUG ] Reading configuration from /etc/salt/cloud.profiles.d/dev1.conf
[DEBUG ] Including configuration from '/etc/salt/cloud.profiles.d/hadoop-dev.conf'
[DEBUG ] Reading configuration from /etc/salt/cloud.profiles.d/hadoop-dev.conf
[DEBUG ] Including configuration from '/etc/salt/cloud.profiles.d/test-dev.conf'
[DEBUG ] Reading configuration from /etc/salt/cloud.profiles.d/test-dev.conf
[DEBUG ] Grains refresh requested. Refreshing grains.
[DEBUG ] Reading configuration from /etc/salt/cloud
[DEBUG ] Marking 'http_query' as a jinja filter
[DEBUG ] Marking 'strftime' as a jinja filter
[DEBUG ] Marking 'date_format' as a jinja filter
[DEBUG ] Marking 'yaml_dquote' as a jinja filter
[DEBUG ] Marking 'yaml_squote' as a jinja filter
[DEBUG ] Marking 'yaml_encode' as a jinja filter
[DEBUG ] Marking 'base64_encode' as a jinja filter
[DEBUG ] Marking 'base64_decode' as a jinja filter
[DEBUG ] Marking 'md5' as a jinja filter
[DEBUG ] Marking 'sha256' as a jinja filter
[DEBUG ] Marking 'sha512' as a jinja filter
[DEBUG ] Marking 'hmac' as a jinja filter
[DEBUG ] Marking 'random_hash' as a jinja filter
[DEBUG ] Marking 'rand_str' as a jinja filter
[DEBUG ] Marking 'file_hashsum' as a jinja filter
[DEBUG ] Marking 'raise' as a jinja global
[DEBUG ] Marking 'match' as a jinja test
[DEBUG ] Marking 'equalto' as a jinja test
[DEBUG ] Marking 'skip' as a jinja filter
[DEBUG ] Marking 'sequence' as a jinja filter
[DEBUG ] Marking 'to_bool' as a jinja filter
[DEBUG ] Marking 'quote' as a jinja filter
[DEBUG ] Marking 'regex_escape' as a jinja filter
[DEBUG ] Marking 'regex_search' as a jinja filter
[DEBUG ] Marking 'regex_match' as a jinja filter
[DEBUG ] Marking 'regex_replace' as a jinja filter
[DEBUG ] Marking 'uuid' as a jinja filter
[DEBUG ] Marking 'unique' as a jinja filter
[DEBUG ] Marking 'min' as a jinja filter
[DEBUG ] Marking 'max' as a jinja filter
[DEBUG ] Marking 'avg' as a jinja filter
[DEBUG ] Marking 'union' as a jinja filter
[DEBUG ] Marking 'intersect' as a jinja filter
[DEBUG ] Marking 'difference' as a jinja filter
[DEBUG ] Marking 'symmetric_difference' as a jinja filter
[INFO ] Processing `log_handlers.sentry`
[DEBUG ] No 'sentry_handler' key was found in the configuration
[INFO ] The `log_handlers.sentry.setup_handlers()` function returned `False` which means no logging handler was configured on purpose. Continuing...
[DEBUG ] Configuration file path: /etc/salt/cloud
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[INFO ] salt-cloud starting
[DEBUG ] Could not LazyLoad parallels.avail_sizes: 'parallels' __virtual__ returned False
[DEBUG ] LazyLoaded parallels.avail_locations
[DEBUG ] LazyLoaded proxmox.avail_sizes
[DEBUG ] Could not LazyLoad parallels.avail_sizes: 'parallels' __virtual__ returned False
[DEBUG ] LazyLoaded parallels.avail_locations
[DEBUG ] LazyLoaded proxmox.avail_sizes
[DEBUG ] Using AWS endpoint: ec2.ap-southeast-1.amazonaws.com
[INFO ] Assuming the role: arn:aws:iam::02415096xxxx:role/DeveloperCrossAccountAccessRole
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: jenkins.example.net
[DEBUG ] AWS Request: https://ec2.ap-southeast-1.amazonaws.com/?Action=DescribeInstances&Version=2014-10-01
[DEBUG ] AWS Response Status Code: 200
[DEBUG ] Generating minion keys for 'testing-7013.example.net'
[DEBUG ] LazyLoaded cloud.fire_event
[DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Sending event: tag = salt/cloud/testing-7013.example.net/creating; data = {u'profile': u'test-dev', u'_stamp': '2018-06-19T11:39:38.957078', u'name': u'testing-7013.example.net', u'driver': u'ec2', u'provider': u'aws-dev-default:ec2', u'event': u'starting create'}
[INFO ] Creating Cloud VM testing-7013.example.net in ap-southeast-1
[DEBUG ] Using AWS endpoint: ec2.ap-southeast-1.amazonaws.com
[INFO ] Assuming the role: arn:aws:iam::02415096xxxx:role/DeveloperCrossAccountAccessRole
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: jenkins.example.net
[DEBUG ] AWS Request: https://ec2.ap-southeast-1.amazonaws.com/?Action=DescribeAvailabilityZones&Filter.0.Name=region-name&Filter.0.Value.0=ap-southeast-1&Version=2014-10-01
[DEBUG ] AWS Response Status Code: 503
[ERROR ] AWS Response Status Code and Error: [503 503 Server Error: Service Unavailable for url: https://ec2.ap-southeast-1.amazonaws.com/?Action=DescribeAvailabilityZones&Filter.0.Name=region-name&Filter.0.Value.0=ap-southeast-1&Version=2014-10-01] {'Errors': {'Error': {'Message': 'Request limit exceeded.', 'Code': 'RequestLimitExceeded'}}, 'RequestID': 'edd5d033-6928-426d-b82c-1e0f7e28152b'}; Attempts remaining: 1
[DEBUG ] AWS Request: https://ec2.ap-southeast-1.amazonaws.com/?Action=DescribeAvailabilityZones&Filter.0.Name=region-name&Filter.0.Value.0=ap-southeast-1&Version=2014-10-01
[DEBUG ] AWS Response Status Code: 200
[DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Sending event: tag = salt/cloud/testing-7013.example.net/requesting; data = {u'event': u'requesting instance', u'_stamp': '2018-06-19T11:39:41.464214', u'location': u'ap-southeast-1', u'kwargs': {u'SecurityGroupId.0': u'sg-24449f42', u'ImageId': u'ami-8fcc75ec', u'SubnetId': u'subnet-ba6a47de', u'KeyName': u'salt_testing', u'Placement.AvailabilityZone': u'ap-southeast-1a', u'MaxCount': 1, u'Action': u'RunInstances', u'MinCount': 1, u'InstanceType': u't2.micro'}}
[DEBUG ] Using AWS endpoint: ec2.ap-southeast-1.amazonaws.com
[INFO ] Assuming the role: arn:aws:iam::02415096xxxx:role/DeveloperCrossAccountAccessRole
[DEBUG ] AWS Request: https://ec2.ap-southeast-1.amazonaws.com/?Action=RunInstances&ImageId=ami-8fcc75ec&InstanceType=t2.micro&KeyName=salt_testing&MaxCount=1&MinCount=1&Placement.AvailabilityZone=ap-southeast-1a&SecurityGroupId.0=sg-24449f42&SubnetId=subnet-ba6a47de&Version=2014-10-01
[DEBUG ] AWS Response Status Code: 200
[DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Sending event: tag = salt/cloud/testing-7013.example.net/querying; data = {u'instance_id': 'i-0844919564c86d210', u'_stamp': '2018-06-19T11:39:42.319244', u'event': u'querying instance'}
[DEBUG ] The new VM instance_id is i-0844919564c86d210
[DEBUG ] Using AWS endpoint: ec2.ap-southeast-1.amazonaws.com
[INFO ] Assuming the role: arn:aws:iam::02415096xxxx:role/DeveloperCrossAccountAccessRole
[DEBUG ] AWS Request: https://ec2.ap-southeast-1.amazonaws.com/?Action=DescribeInstances&InstanceId.1=i-0844919564c86d210&Version=2014-10-01
[DEBUG ] AWS Response Status Code: 200
[DEBUG ] The query returned: [{u'ownerId': '02415096xxxx', u'groupSet': None, u'reservationId': 'r-00b5ea2a1002901aa', u'instancesSet': {u'item': {u'productCodes': None, u'vpcId': 'vpc-34b6d050', u'instanceId': 'i-0844919564c86d210', u'imageId': 'ami-8fcc75ec', u'keyName': 'salt_testing', u'clientToken': None, u'subnetId': 'subnet-ba6a47de', u'amiLaunchIndex': '0', u'instanceType': 't2.micro', u'groupSet': {u'item': {u'groupName': 'daas_markdown', u'groupId': 'sg-24449f42'}}, u'monitoring': {u'state': 'disabled'}, u'dnsName': None, u'privateIpAddress': '10.0.78.45', u'virtualizationType': 'hvm', u'privateDnsName': 'ip-10-0-78-45.ap-southeast-1.compute.internal', u'reason': None, u'sourceDestCheck': 'true', u'blockDeviceMapping': None, u'placement': {u'groupName': None, u'tenancy': 'default', u'availabilityZone': 'ap-southeast-1a'}, u'instanceState': {u'code': '0', u'name': 'pending'}, u'networkInterfaceSet': {u'item': {u'status': 'in-use', u'macAddress': '02:6e:6a:d5:d8:e8', u'sourceDestCheck': 'true', u'vpcId': 'vpc-34b6d050', u'description': None, u'networkInterfaceId': 'eni-f13bf1aa', u'privateDnsName': 'ip-10-0-78-45.ap-southeast-1.compute.internal', u'groupSet': {u'item': {u'groupName': 'daas_markdown', u'groupId': 'sg-24449f42'}}, u'attachment': {u'status': 'attaching', u'deviceIndex': '0', u'deleteOnTermination': 'true', u'attachmentId': 'eni-attach-302758da', u'attachTime': '2018-06-19T11:39:42.000Z'}, u'subnetId': 'subnet-ba6a47de', u'ownerId': '02415096xxxx', u'privateIpAddressesSet': {u'item': {u'privateDnsName': 'ip-10-0-78-45.ap-southeast-1.compute.internal', u'primary': 'true', u'privateIpAddress': '10.0.78.45'}}, u'privateIpAddress': '10.0.78.45'}}, u'ebsOptimized': 'false', u'launchTime': '2018-06-19T11:39:42.000Z', u'architecture': 'x86_64', u'hypervisor': 'xen', u'rootDeviceType': 'ebs', u'rootDeviceName': '/dev/sda1'}}}]
[DEBUG ] Waiting for VM IP. Giving up in 00:10:00.
[DEBUG ] Using AWS endpoint: ec2.ap-southeast-1.amazonaws.com
[INFO ] Assuming the role: arn:aws:iam::02415096xxxx:role/DeveloperCrossAccountAccessRole
[DEBUG ] AWS Request: https://ec2.ap-southeast-1.amazonaws.com/?Action=DescribeInstances&InstanceId.1=i-0844919564c86d210&Version=2014-10-01
[DEBUG ] AWS Response Status Code: 200
[DEBUG ] Returned query data: [{u'ownerId': '02415096xxxx', u'groupSet': None, u'reservationId': 'r-00b5ea2a1002901aa', u'instancesSet': {u'item': {u'productCodes': None, u'vpcId': 'vpc-34b6d050', u'instanceId': 'i-0844919564c86d210', u'imageId': 'ami-8fcc75ec', u'keyName': 'salt_testing', u'clientToken': None, u'subnetId': 'subnet-ba6a47de', u'amiLaunchIndex': '0', u'instanceType': 't2.micro', u'groupSet': {u'item': {u'groupName': 'daas_markdown', u'groupId': 'sg-24449f42'}}, u'monitoring': {u'state': 'disabled'}, u'dnsName': None, u'privateIpAddress': '10.0.78.45', u'virtualizationType': 'hvm', u'privateDnsName': 'ip-10-0-78-45.ap-southeast-1.compute.internal', u'reason': None, u'sourceDestCheck': 'true', u'blockDeviceMapping': {u'item': {u'deviceName': '/dev/sda1', u'ebs': {u'status': 'attaching', u'deleteOnTermination': 'true', u'volumeId': 'vol-0c862cf6ddcc072d7', u'attachTime': '2018-06-19T11:39:42.000Z'}}}, u'placement': {u'groupName': None, u'tenancy': 'default', u'availabilityZone': 'ap-southeast-1a'}, u'instanceState': {u'code': '0', u'name': 'pending'}, u'networkInterfaceSet': {u'item': {u'status': 'in-use', u'macAddress': '02:6e:6a:d5:d8:e8', u'sourceDestCheck': 'true', u'vpcId': 'vpc-34b6d050', u'description': None, u'networkInterfaceId': 'eni-f13bf1aa', u'privateDnsName': 'ip-10-0-78-45.ap-southeast-1.compute.internal', u'groupSet': {u'item': {u'groupName': 'daas_markdown', u'groupId': 'sg-24449f42'}}, u'attachment': {u'status': 'attaching', u'deviceIndex': '0', u'deleteOnTermination': 'true', u'attachmentId': 'eni-attach-302758da', u'attachTime': '2018-06-19T11:39:42.000Z'}, u'subnetId': 'subnet-ba6a47de', u'ownerId': '02415096xxxx', u'privateIpAddressesSet': {u'item': {u'privateDnsName': 'ip-10-0-78-45.ap-southeast-1.compute.internal', u'primary': 'true', u'privateIpAddress': '10.0.78.45'}}, u'privateIpAddress': '10.0.78.45'}}, u'ebsOptimized': 'false', u'launchTime': '2018-06-19T11:39:42.000Z', u'architecture': 'x86_64', u'hypervisor': 'xen', u'rootDeviceType': 'ebs', u'rootDeviceName': '/dev/sda1'}}}]
[DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Sending event: tag = salt/cloud/testing-7013.example.net/tagging; data = {u'_stamp': '2018-06-19T11:39:42.655481', u'event': u'setting tags', u'tags': {u'Name': u'testing-7013.example.net'}}
[DEBUG ] Attempting function <function set_tags at 0x7fc97ab0eb90>
[DEBUG ] Tags to set for testing-7013.example.net: {u'Name': u'testing-7013.example.net'}
[DEBUG ] Using AWS endpoint: ec2.ap-southeast-1.amazonaws.com
[INFO ] Assuming the role: arn:aws:iam::02415096xxxx:role/DeveloperCrossAccountAccessRole
[DEBUG ] AWS Request: https://ec2.ap-southeast-1.amazonaws.com/?Action=CreateTags&ResourceId.1=i-0844919564c86d210&Tag.0.Key=Name&Tag.0.Value=testing-7013.example.net&Version=2014-10-01
[DEBUG ] AWS Response Status Code: 200
[DEBUG ] Using AWS endpoint: ec2.ap-southeast-1.amazonaws.com
[INFO ] Assuming the role: arn:aws:iam::02415096xxxx:role/DeveloperCrossAccountAccessRole
[DEBUG ] AWS Request: https://ec2.ap-southeast-1.amazonaws.com/?Action=DescribeTags&Filter.1.Name=resource-id&Filter.1.Value=i-0844919564c86d210&Version=2014-10-01
[DEBUG ] AWS Response Status Code: 200
[DEBUG ] Setting the tags returned: [{u'resourceType': 'instance', u'resourceId': 'i-0844919564c86d210', u'value': 'testing-7013.example.net', u'key': 'Name'}]
[INFO ] Created node testing-7013.example.net
[INFO ] Salt node data. Private_ip: 10.0.78.45
[INFO ] Salt interface set to: 10.0.78.45
[DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Sending event: tag = salt/cloud/testing-7013.example.net/waiting_for_ssh; data = {u'_stamp': '2018-06-19T11:39:42.925897', u'ip_address': '10.0.78.45', u'event': u'waiting for ssh'}
[DEBUG ] Attempting connection to host 10.0.78.45 on port 22 via gateway ssh-gateway.example.net on port 22
[DEBUG ] Gateway ssh-gateway.example.net on port 22 is reachable.
[DEBUG ] SSH command: 'ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /root/.ssh/id_rsa [email protected] -p 22 'nc -z -w5 -q0 10.0.78.45 22''
[DEBUG ] Child Forked! PID: 9867 STDOUT_FD: 4 STDERR_FD: 9
[DEBUG ] Terminal Command: /bin/sh -c ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /root/.ssh/id_rsa [email protected] -p 22 date
[DEBUG ] Warning: Permanently added 'ssh-gateway.example.net,10.3.1.95' (ECDSA) to the list of known hosts.
[DEBUG ] Child Forked! PID: 9891 STDOUT_FD: 4 STDERR_FD: 9
[DEBUG ] Terminal Command: /bin/sh -c ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /root/.ssh/id_rsa [email protected] -p 22 'nc -z -w5 -q0 10.0.78.45 22'
[DEBUG ] Warning: Permanently added 'ssh-gateway.example.net,10.3.1.95' (ECDSA) to the list of known hosts.
[DEBUG ] Using /root/.ssh/id_rsa as the key_filename
[DEBUG ] Attempting to authenticate as ubuntu (try 1 of 15)
[INFO ] Using SSH gateway [email protected]:22 nc -q0 %h %p
[DEBUG ] SSH command: 'ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /root/.ssh/id_rsa -oConnectTimeout=60 -oProxyCommand="ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -i /root/.ssh/id_rsa [email protected] -p 22 nc -q0 %h %p" -p 22 [email protected] date'
[DEBUG ] Child Forked! PID: 9911 STDOUT_FD: 4 STDERR_FD: 9
[DEBUG ] Terminal Command: /bin/sh -c ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /root/.ssh/id_rsa -oConnectTimeout=60 -oProxyCommand="ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -i /root/.ssh/id_rsa [email protected] -p 22 nc -q0 %h %p" -p 22 [email protected] date
Warning: Permanently added 'ssh-gateway.example.net,10.3.1.95' (ECDSA) to the list of known hosts.
ssh_exchange_identification: Connection closed by remote host
[DEBUG ] Warning: Permanently added 'ssh-gateway.example.net,10.3.1.95' (ECDSA) to the list of known hosts.
ssh_exchange_identification: Connection closed by remote host
[DEBUG ] Using /root/.ssh/id_rsa as the key_filename
[DEBUG ] Attempting to authenticate as ubuntu (try 2 of 15)
[INFO ] Using SSH gateway [email protected]:22 nc -q0 %h %p
[DEBUG ] SSH command: 'ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /root/.ssh/id_rsa -oConnectTimeout=60 -oProxyCommand="ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -i /root/.ssh/id_rsa [email protected] -p 22 nc -q0 %h %p" -p 22 [email protected] date'
[DEBUG ] Child Forked! PID: 9975 STDOUT_FD: 4 STDERR_FD: 9
[DEBUG ] Terminal Command: /bin/sh -c ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /root/.ssh/id_rsa -oConnectTimeout=60 -oProxyCommand="ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -i /root/.ssh/id_rsa [email protected] -p 22 nc -q0 %h %p" -p 22 [email protected] date
Warning: Permanently added 'ssh-gateway.example.net,10.3.1.95' (ECDSA) to the list of known hosts.
ssh_exchange_identification: Connection closed by remote host
[DEBUG ] Warning: Permanently added 'ssh-gateway.example.net,10.3.1.95' (ECDSA) to the list of known hosts.
ssh_exchange_identification: Connection closed by remote host
[DEBUG ] Using /root/.ssh/id_rsa as the key_filename
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment