Skip to content

Instantly share code, notes, and snippets.

@zengxianyu
Created October 19, 2019 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zengxianyu/07211e98dbf7ef69e0ec1de8c10e5baf to your computer and use it in GitHub Desktop.
Save zengxianyu/07211e98dbf7ef69e0ec1de8c10e5baf to your computer and use it in GitHub Desktop.
安卓手机热点和usb共享网络

有安卓手机,ubuntu台式机没有无线网卡,还有个MacBook。目的是要让台式机和笔记本都用手机的流量上网,而且还想要从笔记本ssh到台式机。 (都是因为教研室的网太慢了啥也干不了)

于是我用手机开了个热点,让笔记本连热点。开了个usb共享网络,然后把手机插到台式机usb里。这样台式机和笔记本都能上网了。

但是手机弄出来的热点和usb网络还不在一个局域网里。要想从笔记本ssh台式机的话,可以用proxy server这个软件装到手机上,就能用手机作代理了。

在这个软件上设置把手机某端口的访问都转移到台式机的ip的22端口上就行了。

这样手机得一直插到台式机上了,可以专心学习,防止玩手机

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment