Skip to content

Instantly share code, notes, and snippets.

@meisa233
Last active November 7, 2025 03:45
Show Gist options
  • Select an option

  • Save meisa233/e4438b8a812882fcab1041fd6665fbf5 to your computer and use it in GitHub Desktop.

Select an option

Save meisa233/e4438b8a812882fcab1041fd6665fbf5 to your computer and use it in GitHub Desktop.
  1. 在远程服务器上开启端口转发
sudo vi /etc/ssh/sshd_config
# 添加以下两行
AllowTcpForwarding yes
GatewayPorts yes
# 重启ssh服务
sudo systemctl restart sshd
  1. 在本地机器上连接远程服务器
ssh -L 6006:localhost:6006 user@remote_server_ip

远程服务器上开启

tensorboard --logdir runs_v4_plateau --port 6006
  1. 在本地服务器的浏览器上打开
http://localhost:6006
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment