Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssh 如何在只占用ip端口的远程服务器上设置shadowsocks服务器?_Ssh_Server - Fatal编程技术网

Ssh 如何在只占用ip端口的远程服务器上设置shadowsocks服务器?

Ssh 如何在只占用ip端口的远程服务器上设置shadowsocks服务器?,ssh,server,Ssh,Server,我有一个ubuntu服务器,但我必须通过:8820连接到。我想在端口1081上设置一个shadowsocks服务器,然后如何连接到它?说一些类似于:8820:1081(这是无效的)的话?我尝试使用ssh将其1081端口映射到我的1081端口: ssh -N -f -L localhost:1081:localhost:1081 -p 8820 user@<ip> 但它不起作用,我怎么办?首先,服务器ip必须是您的vps ip地址。并使用443端口(或其他端口,但现在GFW已升级为使

我有一个ubuntu服务器,但我必须通过
:8820
连接到。我想在端口1081上设置一个shadowsocks服务器,然后如何连接到它?说一些类似于
:8820:1081
(这是无效的)的话?我尝试使用ssh将其1081端口映射到我的1081端口:

ssh -N -f -L localhost:1081:localhost:1081 -p 8820 user@<ip>

但它不起作用,我怎么办?

首先,
服务器ip
必须是您的vps ip地址。并使用443端口(或其他端口,但现在GFW已升级为使用白名单,443端口暂时安全)

第二,你能在这里分享你的
ss local.log吗

如果您的
方法:rc4-md5
不起作用,您可以尝试
aes-256-cfb
。我在
方法:rc4-md5

不要忘记重新启动
ss服务器


最后,确保您的internet没有任何Other代理。

您实际上不需要它

{
    "server":"0.0.0.0",
    "server_port":<your server port here>,
    "password":"password",
    "timeout":300,
    "method":"rc4-md5",
    "workers":1
}
{
“服务器”:“0.0.0.0”,
“服务器端口”:,
“密码”:“密码”,
“超时”:300,
“方法”:“rc4-md5”,
“工人”:1
}
配置
ss服务器
以侦听“0.0.0.0”。 映射远程端口,只需使用
ss tunnel

建议: 不要使用标准端口。(随机端口号大于3000小于65536对我来说是可以的。)

rc4-md5
解决方案:

参考:

{
    "server":"0.0.0.0",
    "server_port":<your server port here>,
    "password":"password",
    "timeout":300,
    "method":"rc4-md5",
    "workers":1
}