4

linux用vps翻墙(ssh篇)

 2 years ago
source link: https://www.hi-roy.com/posts/linux%E7%94%A8vps%E7%BF%BB%E5%A2%99-ssh%E7%AF%87/
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.
neoserver,ios ssh client

linux用vps翻墙(ssh篇)

2013-12-06

最近买了一个VPS玩,提供了SSH功能,那就用它来翻翻墙吧。

编写一个脚本文件,内容如下

#!/usr/bin/expect -f
set port 7070
set user xxxx
set host IP地址
set password xxxx
set timeout -1  
spawn ssh -fND $port $user@$host  
expect "*assword:*"  
send "$passwordr"  
expect eof

如果提示spawn命令不存在一类的错误则安装expect、spawn

修改userhostpassword 为你自己的再给上面的脚本添加执行权限。

用root用户执行。

如果是firefox浏览器并使用了autoproxy插件,则设置默认代理为ssh-D,端口根据情况修改,使用socket5。

谷歌浏览器同理

友情提示:速度和流量限制要根据你购买的VPS服务决定哈~

Roy avatar
About Roy
野生程序猿,略懂Python,略懂Golang,略懂云计算,略懂大数据,略懂拳击游泳钓鱼,略懂钢琴吉他摄影。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK