11

I am running tensorflow code remotely on a ssh server. (e.g., ssh -X account@server.address)

On the remote server, it says You can navigate to http://0.0.0.0:6006.

In this case, how can I check tensorboard? How can I navigate the address of a remote machine? I tried to search, but there seems no useful information.

YW P Kwon
  • 2,138
  • 5
  • 23
  • 39

1 Answers1

23

0.0.0.0 is the wildcard address. Thus, you can use any address for the purpose unless the system's firewall is implementig something more restrictive.

That said, let's assume that it is implementing firewall-based restrictions (if it weren't, you could just access http://server.address:6006/ -- but so could anyone else). In that case:

ssh -L 16006:127.0.0.1:6006 account@server.address

...and then refer to http://127.0.0.1:16006/ in a local browser.

Charles Duffy
  • 280,126
  • 43
  • 390
  • 441
  • Connection failed ... XD – Frodon Jul 21 '16 at 20:13
  • Two places that could be -- locally, because the LocalForward didn't get set up correctly, or remotely, because tensorboard isn't *really* accessible on 127.0.0.1:6006. You'll need to investigate which of those is actually the case yourself. – Charles Duffy Jul 21 '16 at 20:15
  • Do, also, note that the `ssh` instance opened with `-L` needs to stay open for the entire duration in which you're using this tunnel. – Charles Duffy Jul 21 '16 at 20:16
  • I'm not OP, I just clicked on the last link :p – Frodon Jul 21 '16 at 20:17
  • Thanks! I tried but when I open "http://127.0.0.1:16006/" on a local web browser, the remote tensorboard says a multiple of 'channel 4: open failed: connect failed: Connection refused'. So I guess they are somehow connected, but tensorboard is not accessible on 127.0.0.1:6006. – YW P Kwon Jul 21 '16 at 20:45
  • I found that, as in your first suggestion, I could launch the remote server's firefox. I will try to use it for now. Thanks so much! – YW P Kwon Jul 21 '16 at 20:46