问题:
对于通过代理访问内网服务器,我们需要通过http代理访问代理服务器,再访问内网服务器。而mac不支持xshell从而无法为SSH连接增加代理,所以选择corkscrew工具。
解决步骤:
1、通过Homebrew包管理工具(Homebrew的安装和使用见链接)安装corscrew
brew install corkscew
# 无需sudo
2、修改~/.ssh/config 配置文件(没有则添加该文件)
1、How Is It Used?
---------------
#Setting up Corkscrew with SSH/OpenSSH is very simple. Adding
#the following line to your ~/.ssh/config file will usually do
#the trick (replace proxy.example.com and 8080 with correct values):
ProxyCommand /usr/local/bin/corkscrew proxy.example.com 8080 %h %p
2、How Do I Use The HTTP Authentication Feature?
---------------------------------------------
#You will need to create a file that contains your usename and