Tensorboard on a remote server

notes
jupyter
tensorboard
How to run Tensorboard on a remote server and access it locally

TL;DR

SSH into the remote server and run Jupyter:

ssh [user@remote]
tensorboard --logdir [path_to_logdir] --port=[port_in_remote]

On the local machine, create an SSH tunnel to forward the remote port to your local machine:

ssh -NfL localhost:[port_in_local]:localhost:[port_in_remote] [user@remote]

Finally, on your local browser, access http://localhost:[port_in_local].

Breakdown

  1. Run Tensorboard in the remote machine specifying the desired port where the service will be exposed.
  2. The ssh command is explained in details in this other note on how to run Jupyter on a remote server.

Resources