connectbot / connectbot

ConnectBot is the first SSH client for Android.
https://connectbot.org
Apache License 2.0
2.4k stars 620 forks source link

SSH reverse tunneling #1227

Open pyzenberg opened 1 year ago

pyzenberg commented 1 year ago

I'm using the following command from my desktop terminal to make a SSH reverse socks tunnel:

# ssh -R 12345:server-1:2222 user@server-2 -fNT -D 0.0.0.0:1080

Now I want to use ConnectBot to make similar connection on my mobile phone. Is it possible?

jayenashar commented 9 months ago

I also have a similar request. I'm using ssh -R localhost:3128 host from my desktop and I'm trying to do the same in connectbot, but it seems ConnectBot sets a destination even if I leave it blank.

the man page says:

if no explicit destination was specified, ssh will act as a SOCKS 4/5 proxy and forward connec‐ tions to the destinations requested by the remote SOCKS client.