Ref:https://stackoverflow.com/questions/37987839/how-can-i-run-tensorboard-on-a-remote-server
本地系統:MacOS 10.15.7
遠程系統:Ubuntu
1. 本地terminal通過ssh代理登錄服務器運行:
ssh -L 16006:127.0.0.1:6006 -p 6001 user@remote_address
2. 在服務器上運行:
tensorboard --logdir <path> --port 6006
3. 本地瀏覽器打開
登錄服務器時遇到一個報錯:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The ECDSA host key for [*******.com]:6001 has changed, and the key for the corresponding IP address [***.**.**.**]:6001 has a different value. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. Offending key for IP in /Users/sherrychen/.ssh/known_hosts:1 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:HH840ULDPZ6LtYKQousaRUVXEefQbwx1D8m+1FHXIDI. Please contact your system administrator. Add correct host key in /Users/sherrychen/.ssh/known_hosts to get rid of this message. Offending ED25519 key in /Users/sherrychen/.ssh/known_hosts:27 eygen -R ******.com]:6001 has changed and you have requested strict checking. Host key verification failed.
解決方法:
ssh-keygen -R server_address:port_number
Ref: