在遠程服務器上運行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. 本地瀏覽器打開

127.0.0.1:16006

 

登錄服務器時遇到一個報錯:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       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: 

https://blog.csdn.net/wd2014610/article/details/85639741


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM