Skip to content

Instantly share code, notes, and snippets.

View ahuigo's full-sized avatar
I may be slow to respond.

Ahuigo ahuigo

I may be slow to respond.
View GitHub Profile
ahuigo / ssh-proxy-setup
Created March 11, 2019 16:47
setup proxy for ssh connection
# 添加到 ~/.ssh/config
# 修改 <custom-name> 为任意名字
# 修改 <ip> 为服务器地址
# 修改 <username> 为登录服务器的用户名
# 修改 <port> 为服务器端口
# 修改完 ssh custom-name 就可以登录服务器了
# 下面的配置是仅 Mac 有效的
Host <custom-name>
User <username>
HostName <ip>