How to use the tensorboard on a remote server

Tensorboard is a very convenient tools for tensorflow, whihc allows us to view the summaries of the running experiments in the browser. However, for the people who study the DNNs, it is very common to run the experiment on a remote server with GPUs. So how could we use tensorboard on our own PC to monitor the experiment on the server?

You need to start SSH with transfer the remote server’s port to your local PC:

(on your local PC) ssh -L 16006:127.0.0.1:16007 username@server_ip

Then you may start the tensorboard on the remote server with the specific port we want to transfer: