在远程服务器上运行tensorboard并在本地打开
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: