Create Account SSH STUNNEL Singapore ZXC
https://www.fastssh.com/page/ssh-account-creator-stunnel/server/1001005/ssh-stunnel-singapore-zxc/
base64:aHR0cHM6Ly9ibG9nLmZhc3Rzc2guY29tL3Zwbi1wcm90b2NvbC9zc2gtc3NsL2hvdy10by11c2Utc3NoLXNzbC1zdHVubmVsLWFjY291bnQtb24tYW5kcm9pZC1hbmQtcGMv
blog.fastssh.com
#How to Use SSL (Stunnel) Account on PC
#https://dl.bitvise.com/BvSshClient-Inst.exe
lutfailham96/libernet: Libernet is open source web app for 。。。
https://github.com/lutfailham96/libernet
申请好账户后,如何使用呢?
(只有socks功能,无shell功能,因为用户的home目录不存在,有效期7天)
在ubuntu20.04或22.04中安装stunnel4
apt install -y stunnel4;
准备配置文件:
ls -al /etc/stunnel/ /etc/stunnel/stunnel.conf;
cat <<EOF>/etc/stunnel/stunnel.conf
[fastssh.com-2024]
client = yes
accept = 127.0.0.22:8022
connect = ssl-sg1.hostip.co:444
EOF
在/etc/stunnel/stunnel.conf文件里,最后一行改为connect = ssl-sg1.hostip.co:443(或connect = ssl-sg1.hostip.co:990),也可以(只不过nc 127.0.0.22 8022 ,会显示版本为:SSH-2.0-dropbear_2017.75,而不是444端口的SSH-2.0-OpenSSH_5.3)
启动:
root@fv-az1393-708:/tmp#
root@fv-az1393-708:/tmp# stunnel4
root@fv-az1393-708:/tmp#
验证:
root@fv-az1393-708:/tmp# /tmp/busybox netstat -anl|grep 8022
tcp 0 0 127.0.0.22:8022 0.0.0.0:* LISTEN
root@fv-az1393-708:/tmp#
使用sshpass自动输入密码:
#sshpass -p '********' ssh -oHostKeyAlgorithms=+ssh-dss -o ServerAliveInterval=10 -o ServerAliveCountMax=3 -D 3080 -Nf -v fastssh.com-newname2024a@127.0.0.22 -p 8022
sshpass -p '********' ssh -oHostKeyAlgorithms=+ssh-dss -o ServerAliveInterval=10 -o ServerAliveCountMax=3 -D 3080 -Nf fastssh.com-newname2024a@127.0.0.22 -p 8022
验证:
# curl -v -4k -x socks5h://127.0.0.1:3080 https://cip.cc
curl -x socks5h://127.0.0.1:3080 cip.cc
root@fv-az1393-708:/tmp# curl -x socks5h://127.0.0.1:3080 cip.cc
IP : 103.253.24.41
地址 : 新加坡 新加坡
数据二 : 新加坡 | NewMedia数据中心
数据三 : 新加坡
URL : http://www.cip.cc/103.253.24.41
root@fv-az1393-708:/tmp#
测速,大概370KB每秒?
root@fv-az1393-708:/tmp# curl -x socks5h://127.0.0.1:3080 -LO4k https://www.stunnel.org/downloads/stunnel-5.72-win64-installer.exe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3989k 100 3989k 0 0 378k 0 0:00:10 0:00:10 --:--:-- 643k
root@fv-az1393-708:/tmp#