- 在远程服务器上开启端口转发
sudo vi /etc/ssh/sshd_config
# 添加以下两行
AllowTcpForwarding yes
GatewayPorts yes
# 重启ssh服务
sudo systemctl restart sshd
- 在本地机器上连接远程服务器
ssh -L 6006:localhost:6006 user@remote_server_ip
远程服务器上开启
tensorboard --logdir runs_v4_plateau --port 6006
- 在本地服务器的浏览器上打开
http://localhost:6006