{"action":"created","issue":{"url":"https://api.github.com/repos/ray-project/ray/issues/1013","repository_url":"https://api.github.com/repos/ray-project/ray","labels_url":"https://api.github.com/repos/ray-project/ray/issues/1013/labels{/name}","comments_url":"https://api.github.com/repos/ray-project/ray/issues/1013/comments","events_url":"https://api.github.com/repos/ray-project/ray/issues/1013/events","html_url":"https://github.com/ray-project/ray/issues/1013","id":260677870,"number":1013,"title":"Ray with SSH port tunneling","user":{"login":"unixpickle","id":406021,"avatar_url":"https://avatars1.githubusercontent.com/u/406021?v=4","gravatar_id":"","url":"https://api.github.com/users/unixpickle","html_url":"https://github.com/unixpickle","followers_url":"https://api.github.com/users/unixpickle/followers","following_url":"https://api.github.com/users/unixpickle/following{/other_user}","gists_url":"https://api.github.com/users/unixpickle/gists{/gist_id}","starred_url":"https://api.github.com/users/unixpickle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixpickle/subscriptions","organizations_url":"https://api.github.com/users/unixpickle/orgs","repos_url":"https://api.github.com/users/unixpickle/repos","events_url":"https://api.github.com/users/unixpickle/events{/privacy}","received_events_url":"https://api.github.com/users/unixpickle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-09-26T15:54:56Z","updated_at":"2018-02-22T04:50:35Z","closed_at":"2017-09-30T04:18:52Z","author_association":"NONE","body":"I am trying to use SSH port tunneling to connect to Ray on a remote machine. This would be useful for accessing machines behind a firewall in a secure way.\r\n\r\nWhen I try to connect to the Ray head through the SSH tunnel, I get a generic error message (included below). I'm attempting to forward the Redis port, but I suspect there's some hostname/port voodoo I'm missing.\r\n\r\nFirst, I run a Ray head on *machine 1*:\r\n\r\n```\r\n$ ray start --head\r\nUsing IP address 192.168.1.124 for this node.\r\nWaiting for redis server at 127.0.0.1:40452 to respond...\r\nWaiting for redis server at 127.0.0.1:53790 to respond...\r\n...\r\n\r\nStarted Ray on this node. You can add additional nodes to the cluster by calling\r\n\r\n    ray start --redis-address 192.168.1.124:40452\r\n\r\nfrom the node you wish to add. You can connect a driver to the cluster from Pyth\r\non by running\r\n\r\n    import ray\r\n    ray.init(redis_address=\"192.168.1.124:40452\")\r\n...\r\n```\r\n\r\nThen I forward port `40452` on *machine 2* like so:\r\n\r\n```\r\n$ ssh -L 40452:localhost:40452 -p 2222 alex@192.168.1.124\r\n```\r\n\r\nFinally, I try to connect to Ray on *machine 2*:\r\n\r\n```\r\n$ python3\r\n>>> import ray\r\n>>> ray.init(redis_address='localhost:40452')\r\nSome processes that the driver needs to connect to have not registered with Redis, so retrying. Have you run 'ray start' on this node?\r\nSome processes that the driver needs to connect to have not registered with Redis, so retrying. Have you run 'ray start' on this node?\r\n...\r\n```\r\n\r\nI verified that my tunnel indeed works, and appears to connect to *some* kind of server:\r\n\r\n```\r\n$ telnet localhost 40452\r\nTrying ::1...\r\nConnected to localhost.\r\nEscape character is '^]'.\r\naoeu\r\n-ERR unknown command 'aoeu'\r\n^]\r\ntelnet> Connection closed.\r\n```"},"comment":{"url":"https://api.github.com/repos/ray-project/ray/issues/comments/367566756","html_url":"https://github.com/ray-project/ray/issues/1013#issuecomment-367566756","issue_url":"https://api.github.com/repos/ray-project/ray/issues/1013","id":367566756,"user":{"login":"robertnishihara","id":249517,"avatar_url":"https://avatars3.githubusercontent.com/u/249517?v=4","gravatar_id":"","url":"https://api.github.com/users/robertnishihara","html_url":"https://github.com/robertnishihara","followers_url":"https://api.github.com/users/robertnishihara/followers","following_url":"https://api.github.com/users/robertnishihara/following{/other_user}","gists_url":"https://api.github.com/users/robertnishihara/gists{/gist_id}","starred_url":"https://api.github.com/users/robertnishihara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertnishihara/subscriptions","organizations_url":"https://api.github.com/users/robertnishihara/orgs","repos_url":"https://api.github.com/users/robertnishihara/repos","events_url":"https://api.github.com/users/robertnishihara/events{/privacy}","received_events_url":"https://api.github.com/users/robertnishihara/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T04:50:35Z","updated_at":"2018-02-22T04:50:35Z","author_association":"CONTRIBUTOR","body":"Yeah definitely. I'll see if I can put something together later today."}}
{"actor":{"display_login":"robertnishihara"}}