Loading

用将远程主机的地址映射到本地主机--通过SSH

If you are running  in a cloud environment like AWS, Azure, Digital Ocean, or GCE you will not have direct access to localhost or 127.0.0.1 via a browser. A work around for this is to leverage ssh port forwarding. Below is an example for Mac OS. Similarly this can be done for Windows and Putty users.

$ ssh -L 5000:localhost:5000 <ssh-user>@<CLOUD_INSTANCE_IP_ADDRESS>

 

 
posted @ 2020-12-15 19:17  KairusZhang  阅读(479)  评论(0编辑  收藏  举报