12
配置ssh走shadowsocks代理
source link: https://houye.xyz/2017-11/sshoverss/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
配置ssh走shadowsocks代理
配置ssh走shadowsocks代理
国外的vps难免会速度不理想,最近才知道原来还可以配置ssh走代理,很简单。
cat ~/.ssh/config host houye.xyz hostname xxx.xxx.xxx.xxx user username port 22 ProxyCommand connect -S 127.0.0.1:1080 %h %p
- host是别名
- hostname是主机名或者ip
- ProxyzCommand 是真正配置走代理的关键,后面的ip和端口换成你shadowsock客户端里的
如果没有connect命令,可以去 bitbucket.org 下载编译1。
如此,当你连接配置项里的服务器时,就会走shadowsocks代理。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK