wutaijie

马马的主页

阿里云轻量服务器香港ssh隧道

粗略整理一下,有问题的欢迎指出

首先需要有一台vps,关于vps里的设置我并没有涉及,因为我的vps有安装trojan代理,所以可能需要的配置已经有设定好,比如需要开放的端口啥的

在N1端:
先安装openssh需要的一些插件,我是一股脑安装的
opkg update
opkg install openssh-server openssh-client openssh-sftp-server openssh-keygen
/etc/init.d/sshd enable
/etc/init.d/sshd start

生成ssh密钥并上传到vps端:
ssh-keygen
ssh-keygen -y -f ~/.ssh/id_rsa && cat ~/.ssh/id_rsa.pub | ssh root@你的vps “cat – >> ~/.ssh/authorized_keys”

ssh隧道转发:
ssh -NfD 192.168.31.3:3080 root@你的vps

完成之后打开你的socks5代理工具,添加上面的socks5地址以及端口
享受~

设置开机启动:
vi:/etc/rc.local

在exit前插入下面的参数:
ssh -CNfD 192.168.31.3:3080 root@你的vps >/dev/null 2>&1 &

保存。

总结:
用的vps是阿里云轻量服务器,香港30m,搭的trojan,这个时间点测试卡成狗,用ssh隧道满速,爱了

阿里云轻量服务器香港ssh隧道

2 thoughts on “阿里云轻量服务器香港ssh隧道

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

Scroll to top