云服务器

服务器上创建一个新的用户,并赋予 root 权限

服务器上创建一个新的用户,并赋予root权限_登录到您的服务器并root创建用户lab:-CSDN博客

代理

ssh 挖洞代理

1
ssh -CqTnNf -D 1080 -4 root@2602:294:0:dc:1234:1234:46cd:0001

其中 -C 为压缩数据,-q 安静模式,-T 禁止远程分配终端,-n 关闭标准输入,-N 不执行远程命令。此外视需要还可以增加 -f 参数,把 ssh 放到后台运行。这些 ssh 代理没有短线重连功能,链接断了命令就退出了,所以需要些脚本监控重启,或者使用 autossh 之类的工具保持链接。

1
export ALL_PROXY=socks5h://localhost:1080

VRAY 代理

1
sudo systemctl enable --now v2raya

代理设置

.bashrc

1
2
export http_proxy=http://127.0.0.1:20171
export https_proxy=http://127.0.0.1:20171

ssh 代理

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sudo apt-get install netcat

#.ssh/config
Host *
ProxyCommand nc -X 5 -x 127.0.0.1:20170 %h %p

Host github.com
User git
Port 22
Hostname github.com
IdentityFile /home/robot/.ssh/id_rsa
TCPKeepAlive yes

Host ssh.github.com
User git
Port 443
Hostname ssh.github.com
IdentityFile /home/robot/.ssh/id_rsa
TCPKeepAlive yes

脚本代理

订阅转换

1panel

openssh

vps 网速加速

免费节点