保持 wsl2 在后台运行
原本的需求是用 mac 通过 ssh 远程连接 windows 主机上的 wsl2,主要参考了这个教程,调试的时候发现问题关键是让 wsl2 保持后台运行,一旦 wsl2 instance 被停止,就无法连接上了。 Windows powershell 可以通过 wsl -l…
服务器上使用本地代理实现科学上网——SSH Reverse Forwarding
在服务器上,修改 ~/.zshrc (或~/.bashrc),设置网络代理: Copy
# set reverse forward port, connect to local proxy port
export http_proxy=http://127.0.0.1:<port…