{"action":"created","issue":{"url":"https://api.github.com/repos/oliverlloyd/jmeter-ec2/issues/10","labels_url":"https://api.github.com/repos/oliverlloyd/jmeter-ec2/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/oliverlloyd/jmeter-ec2/issues/10/comments","events_url":"https://api.github.com/repos/oliverlloyd/jmeter-ec2/issues/10/events","html_url":"https://github.com/oliverlloyd/jmeter-ec2/issues/10","id":12600833,"number":10,"title":"Connection closed error ","user":{"login":"groovybayo","id":3207704,"avatar_url":"https://avatars.githubusercontent.com/u/3207704?v=3","gravatar_id":"","url":"https://api.github.com/users/groovybayo","html_url":"https://github.com/groovybayo","followers_url":"https://api.github.com/users/groovybayo/followers","following_url":"https://api.github.com/users/groovybayo/following{/other_user}","gists_url":"https://api.github.com/users/groovybayo/gists{/gist_id}","starred_url":"https://api.github.com/users/groovybayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groovybayo/subscriptions","organizations_url":"https://api.github.com/users/groovybayo/orgs","repos_url":"https://api.github.com/users/groovybayo/repos","events_url":"https://api.github.com/users/groovybayo/events{/privacy}","received_events_url":"https://api.github.com/users/groovybayo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2013-03-29T10:45:34Z","updated_at":"2015-01-23T23:23:29Z","closed_at":"2013-09-20T10:42:37Z","body":"Hi Oliver – Nice work on the script. I am experiencing the same issues with lost connection when copying over the install.sh.\r\n\r\n    copying install.sh to 1 server(s)…lost connection\r\n    .grep: /Users/workspace/testing-ws/jmeter-ec2/sample-project/1364519238*scpinstall.out: No such file or directory\r\n\r\nI have verified my security group is configured correctly and can ssh into the box by doing a telnet ping on 22\r\n\r\n    telnet ec2-23-23-69-1.compute-1.amazonaws.com 22 ⏎\r\n    Trying 23.23.69.1…\r\n     Connected to ec2-23-23-69-1.compute-1.amazonaws.com.\r\n     Escape character is ‘^]’.\r\n     SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1\r\n      ^C\r\n\r\nHowever, the scp of install.sh fails and I can’t get past that point. I have even put a sleep 60s as suggested by Zack on (http://www.http503.com/2012/run-jmeter-on-amazon-ec2-cloud/), to no avail.\r\n\r\nAny ideas why this might be happening? Is there a work around?\r\n\r\nThanks in advance.\r\n"},"comment":{"url":"https://api.github.com/repos/oliverlloyd/jmeter-ec2/issues/comments/71283921","html_url":"https://github.com/oliverlloyd/jmeter-ec2/issues/10#issuecomment-71283921","issue_url":"https://api.github.com/repos/oliverlloyd/jmeter-ec2/issues/10","id":71283921,"user":{"login":"tegryan","id":3819968,"avatar_url":"https://avatars.githubusercontent.com/u/3819968?v=3","gravatar_id":"","url":"https://api.github.com/users/tegryan","html_url":"https://github.com/tegryan","followers_url":"https://api.github.com/users/tegryan/followers","following_url":"https://api.github.com/users/tegryan/following{/other_user}","gists_url":"https://api.github.com/users/tegryan/gists{/gist_id}","starred_url":"https://api.github.com/users/tegryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tegryan/subscriptions","organizations_url":"https://api.github.com/users/tegryan/orgs","repos_url":"https://api.github.com/users/tegryan/repos","events_url":"https://api.github.com/users/tegryan/events{/privacy}","received_events_url":"https://api.github.com/users/tegryan/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T23:23:29Z","updated_at":"2015-01-23T23:23:29Z","body":"For anyone having troubles with the infamous  \"copying install.sh to 1 server(s)…lost connection\" issue and are using EC2 try changing your security group to be any IP on port 22, not just the host you are trying to access from.\r\n\r\nI can't explain it, but from one EC2 host to the Jmeter host I could SSH, but not SCP.  I tried all suggestions in thread and others and nothing worked until I did that.  I suspect you couldn't reproduce it Oliver because you were not going from EC2 host to EC2 host (just a guess).\r\n\r\nI also tried disabling MOTD, changing to the ec2-user (I need to use ubuntu), creating a .hushlogin file and so on.  If you recreate the SCP command, add -vvv and get rid of -q while the jmeter node is up you might get some additional info.  Certainly if the permissions on the .pem file are wrong that will at least tell you."}}