Let's have a look at how to expose your server's ssh port and how to access it from a client through stunnel.
$ ssh srv.us -R 1:localhost:22
1: https://qp556ma755ktlag5b2xyt334ae.srv.us/, https://pcarrier.gh.srv.us/
[ssh]
client = yes
accept = 127.0.0.1:2022
connect = qp556ma755ktlag5b2xyt334ae.srv.us:443
- Download and install stunnel from here
- Open Start Menu → stunnel CurrentUser → Edit stunnel.conf
- Add the sample config to the config file then save
- Start stunnel from Start Menu → stunnel CurrentUser → stunnel GUI Start
- Connecting to the server
ssh 127.0.0.1 -p 2022
- Install stunnel
sudo apt -yq install stunnel4
- Put the sample config in
/etc/stunnel/stunnel.conf
- Start stunnel
sudo service stunnel4 start
Or
sudo systemctl start stunnel4
- Connecting to the server
ssh 127.0.0.1 -p 2022
- Install SSLSocks
- Open the apps and put the sample config in the
CONFIG
tab - Tap on
HOME
tab and tap onNot running
to change it toRunning
- Connecting to the server (from termux or any other terminal emulator that support ssh client)
ssh 127.0.0.1 -p 2022