{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6924","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6924/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6924/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6924/events","html_url":"https://github.com/travis-ci/travis-ci/issues/6924","id":191251501,"number":6924,"title":"Adding localhost to ssh_known_hosts gives Connection reset on trusty","user":{"login":"robert-schmidtke","id":1101741,"avatar_url":"https://avatars.githubusercontent.com/u/1101741?v=3","gravatar_id":"","url":"https://api.github.com/users/robert-schmidtke","html_url":"https://github.com/robert-schmidtke","followers_url":"https://api.github.com/users/robert-schmidtke/followers","following_url":"https://api.github.com/users/robert-schmidtke/following{/other_user}","gists_url":"https://api.github.com/users/robert-schmidtke/gists{/gist_id}","starred_url":"https://api.github.com/users/robert-schmidtke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robert-schmidtke/subscriptions","organizations_url":"https://api.github.com/users/robert-schmidtke/orgs","repos_url":"https://api.github.com/users/robert-schmidtke/repos","events_url":"https://api.github.com/users/robert-schmidtke/events{/privacy}","received_events_url":"https://api.github.com/users/robert-schmidtke/received_events","type":"User","site_admin":false},"labels":[{"id":478434094,"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/trusty-container","name":"trusty-container","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-23T11:54:42Z","updated_at":"2016-12-16T00:25:00Z","closed_at":null,"body":"Hi,\r\n\r\nI want to start HDFS locally during [one of my builds](https://github.com/robert-schmidtke/hdfs-statistics-adapter/blob/6d107c9436030bc5ebcf8829946b73789c344446/.travis.yml), and therefore I need to allow `ssh` to `localhost`. I did this using `ssh-keyscan` on `precise` and it [worked fine](https://travis-ci.org/robert-schmidtke/hdfs-statistics-adapter/builds/175325448). However I had to switch to `trusty` recently, and now this approach [does not work anymore](https://travis-ci.org/robert-schmidtke/hdfs-statistics-adapter/builds/178256088):\r\n\r\n```bash\r\n$ ssh-keyscan -vvv -t dsa localhost >> $HOME/.ssh/known_hosts\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8 pat OpenSSH_6.6.1* compat 0x04000000\r\n# localhost SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: SSH2_MSG_KEXINIT sent\r\nRead from socket failed: Connection reset by peer\r\n\r\n$ ssh-keyscan -vvv -t dsa 0.0.0.0 >> $HOME/.ssh/known_hosts\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8 pat OpenSSH_6.6.1* compat 0x04000000\r\n# 0.0.0.0 SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: SSH2_MSG_KEXINIT sent\r\nRead from socket failed: Connection reset by peer\r\n```\r\n\r\nand the `ssh_known_hosts` addon [does not work either](https://travis-ci.org/robert-schmidtke/hdfs-statistics-adapter/builds/178261024):\r\n\r\n```bash\r\n$ ssh-keyscan -t $TRAVIS_SSH_KEY_TYPES -H localhost 2>&1 | tee -a $HOME/.ssh/known_hosts\r\n# localhost SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8\r\nRead from socket failed: Connection reset by peer\r\n# localhost SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8\r\nRead from socket failed: Connection reset by peer\r\n# localhost SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8\r\nRead from socket failed: Connection reset by peer\r\n\r\n$ ssh-keyscan -t $TRAVIS_SSH_KEY_TYPES -H 0.0.0.0 2>&1 | tee -a $HOME/.ssh/known_hosts\r\n# 0.0.0.0 SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8\r\nRead from socket failed: Connection reset by peer\r\n# 0.0.0.0 SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8\r\nRead from socket failed: Connection reset by peer\r\n# 0.0.0.0 SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8\r\nRead from socket failed: Connection reset by peer\r\n```\r\n\r\nAm I missing something? What would be the appropriate way of adding `localhost` and `0.0.0.0` to the list of known hosts? Thanks in advance!\r\n\r\nCheers\r\nRobert"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/267484573","html_url":"https://github.com/travis-ci/travis-ci/issues/6924#issuecomment-267484573","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6924","id":267484573,"user":{"login":"robert-schmidtke","id":1101741,"avatar_url":"https://avatars.githubusercontent.com/u/1101741?v=3","gravatar_id":"","url":"https://api.github.com/users/robert-schmidtke","html_url":"https://github.com/robert-schmidtke","followers_url":"https://api.github.com/users/robert-schmidtke/followers","following_url":"https://api.github.com/users/robert-schmidtke/following{/other_user}","gists_url":"https://api.github.com/users/robert-schmidtke/gists{/gist_id}","starred_url":"https://api.github.com/users/robert-schmidtke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robert-schmidtke/subscriptions","organizations_url":"https://api.github.com/users/robert-schmidtke/orgs","repos_url":"https://api.github.com/users/robert-schmidtke/repos","events_url":"https://api.github.com/users/robert-schmidtke/events{/privacy}","received_events_url":"https://api.github.com/users/robert-schmidtke/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T00:25:00Z","updated_at":"2016-12-16T00:25:00Z","body":"In fact [it does](https://travis-ci.org/robert-schmidtke/hdfs-statistics-adapter/builds/184407867), can't believe I don't seem to have tested this before. There's another issue (some password prompt), but I guess I can try and work this out myself first. Thanks!"}}
{"actor":{"display_login":"robert-schmidtke"}}