As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [reverse-tunnel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Tunneling multicast over SSH

There's a remote server which has a LAN interface configured with IP address 192.168.100.2 as well it has a routing rule enabling all multicast 224.0.0.0/4 -> 192.168.100.2. The remote server is ...
Alejandro Lichtenfeld's user avatar
1 vote
1 answer
30 views

Cannot connect to VNC through reverse ssh

I am trying to set up a connection between my work machine (running Ubuntu 20) and my home machine (running Ubuntu 18) through a (G)cloud instance (running Ubuntu 20). Because of the strict firewall ...
Michele Valotti's user avatar
1 vote
1 answer
194 views

SSH reverse tunneling to a linux machine

I have essentially the same configuration as this question (relevant image below): where I want to be able to ssh into RPC-2 from either LPC-1 directly and from any arbitrary machine via LPC-1. I ...
SIRCAVEC's user avatar
  • 113
0 votes
0 answers
350 views

SSH tunnel to database server over multiple hops

SSH tunneling is easy to accomplish: ssh -D1234 host But we have a more specific infrastructure Host 1 (Remote server placed in my company) Host 2 (Local server inside Host 1 network) Host 3 (...
RyadPasha's user avatar
  • 101
0 votes
0 answers
112 views

Linux ssh reverse tunnel connects without endpoint

I am using ssh reverse tunnels (using AutoSSH) to allow incoming connections on certain ports on my Internet server, to be tunneled to Local Servers on my house LAN. My problem is that the SSH accepts ...
Bart Kindt's user avatar
0 votes
0 answers
20 views

Reverse shell - outgoing connections created automatically in spite they being terminated [duplicate]

My Win 10 computer has been hacked and is creating automatic reverse shell connections to different IP Addresses (spoofed as Google and Microsoft IP's). Each time I terminate these connections they ...
Santhosh's user avatar
1 vote
1 answer
536 views

How to SSH between two servers behind firewalls (without a 3rd party server)

There are many posts on this topic and SSH Tunnelling however, some come close to meeting this requirement, missing out a step or two and others are difficult to follow because of unclear terms. This ...
SC-SL's user avatar
  • 111
0 votes
0 answers
380 views

Passwordless ssh reverse tunnel suddenly asks for password?

This has me puzzled to no end, hopefully someone can clarify. I have a local server, LOCALSRV, and remote server (Ubuntu 20.04), REMOTESRV. On the local server, I've established a reverse ssh tunnel, ...
sdbbs's user avatar
  • 1,058
0 votes
1 answer
48 views

Make my machine open to internet through VPS

So currently what I have as follow: Private IP A Windows local machine I have full access for An Amazon free-tier VPS that I have full access So as you know the AWS Free Tier has a public IP on it, ...
Hans Yulian's user avatar
1 vote
1 answer
795 views

SSH dynamic port forwarding (SOCKS) from LAN (behind NAT) to another LAN (behind NAT); middle server with public IP address available

I need advice how to make proper ssh connections. My network: I want to be able to view web server content from devices B_1, B_2, B_3 using FF with SOCKS configured on Client A. Note that firewall ...
Hubert Von Süßer Busarzt's user avatar
0 votes
0 answers
52 views

Access local web server using another public server

I have few web server running behind the NAT((accessible using local IP)), and I need to access the web server from public network. I cannot use port forwarding. Also I have a main central server ...
CodeDezk's user avatar
  • 147
0 votes
1 answer
548 views

What could cause a reverse SSH port forwarding tunnel to not work when initiated but start working exactly at midnight?

I followed this guide to forward a port on my VPS (public static IP) to access a Nextcloud installation on a remote server behind a firewall. It worked - sort of. At any point in time, the remote ...
Bombaglad's user avatar
1 vote
1 answer
140 views

Reverse connection to remote database

I have a very large database on my home server. But my ISP doesn't allow me a port forward. Is there a way to reverse the connection from my web hosting server to my home database server which doesn't ...
Temuujin CC's user avatar
0 votes
0 answers
134 views

Create a public tunnel that points to a foreign public IP to access a game server

I have a server that I have SSH access to, let's say 34.91.54.12. There is another server somewhere in the internet, I have no access to, let's say 54.123.65.13. This server is hosting a game server ...
Manu Shamil 's user avatar
0 votes
1 answer
519 views

4G Reverse SSH tunnel through a port forwarded VPN?

So I have a laptop connected to the 4G network the only problem is I want to connect to it via SSH from my PC. So far I have discovered that ny network operator does not allow port forwarding but I ...
Definity's user avatar
  • 101
1 vote
1 answer
3k views

How to use reverse ssh tunneling with multiple jump servers

How would I use SSH Tunneling for an architecture in the example below? Scenario: I am physically logged into Windows PC Local and wish to remote desktop into the Windows PC Remote using port 3389....
BadAndy's user avatar
  • 23
0 votes
1 answer
897 views

Passwordless sshfs mount over reverse-ssh

I'm trying to mount a host directory onto a remote machine using reverse-ssh and sshfs For the most part, running the following command on the host works ssh -t -L 0.0.0.0:10000:localhost:10000 -i /...
Ani's user avatar
  • 113
1 vote
1 answer
819 views

Unable to reach Plex using SSH reverse tunneling

I've got Plex installed on a Windows computer at home. My internet connection goes over CG-NAT, so in order to access home I use an SSH reverse tunnel against a dedicated Linux server that I have on ...
FrakyDale's user avatar
  • 207
0 votes
1 answer
249 views

How to remotely write to a file using multi-hop SSH

Questions like How to remotely write to a file using SSH are about a direct SSH. But I am reaching the end of a reverse tunnel which ends on intermediateserver. That is, I'm ssh'ing to one machine ...
CPBL's user avatar
  • 213
0 votes
0 answers
4k views

Reverse VPN to access remote network

Setup: VPN Server site (L2TP UniFi-Security-Gateway), exposed to the internet (secured) VPN Client site (Ubuntu server connecting to VPN server) Reverse VPN between the sites, client can press "...
Paul's user avatar
  • 396
0 votes
1 answer
2k views

SSH remote forwarded port doesn't accept external connection (even with `GetewayPorts yes`)

I am trying to set a reverse/remote SSH port forward, using this schema where the Apache Linux server forwards the port 80 to the SSH server. So On the SSH server I changed the configuration to ...
Vincent Diallo-Nort's user avatar
0 votes
0 answers
507 views

Reverse tunnel from Linux box to Windows box using freeSSHd

I have a Linux box that is behind a NAT that I would like to get access to. Servers that I have running are using Windows. I have installed freeSSHd and can connect to the Windows server from the ...
Dick's user avatar
  • 33
1 vote
1 answer
2k views

How can reverse-SSH be established with Windows Subsystem for Linux (WSL)?

I need reverse-SSH access to Windows Subsystem for Linux (WSL) Ubuntu. Normally this isn't a problem with Linux machines but with WSL it isn't working. First I establish the reverse SSH connection ...
BlandCorporation's user avatar
0 votes
1 answer
315 views

how to find which port reverse connection wants to connect? [closed]

A Client wants to connect to a server. The server doesn't know which port the client is using for open that port. How to find which port reverse connection (incoming connection) wants to connect?
Elkhazrajy's user avatar
1 vote
1 answer
2k views

Reverse proxy with ssh

I have the following setup: A: my linux laptop at home B: a Windows machine to which I have access via VNC, this PC is behind a restrictive firewall C: a PLC on the same subnet as B I'd like ...
PaperTsar's user avatar
  • 145
0 votes
1 answer
478 views

How to make port forwarding in initramfs stage?

I can install dropbear into the initramfs and successfully connect to this ssh server (IP: my_initramfs_ip) on boot stage, as described here. Now I want to perform a port forwarding as a client at ...
ceremcem's user avatar
  • 555
1 vote
4 answers
4k views

Can I use other host instead of localhost for Destination Field in SSH Reverse Tunnel Port Forwarding?

I am using Putty to achieve SSH Reverse Tunnel Port Forwarding. Most of the tutorials are teaching me to forward remote port to localhost port. However, may I know is it make sense to input other host ...
mannok's user avatar
  • 113
3 votes
0 answers
658 views

How to find out dynamic reverse SSH remote port without sudo

I can initialize reverse SSH from client with following command: $ ssh -R 0:localhost:22 <server_host> Allocated port 42853 for remote forward to localhost:22 How can I figure out that 42853 ...
Jaakko's user avatar
  • 310
2 votes
1 answer
3k views

Reverse ssh not working. ssh_exchange_identification: Connection closed by remote host

This is what I run in the server(A) to open tunnel: ssh -vf -N -T -R 222:localhost:22 me@myserverip -p 2222 This is what I run on the myserver server(B) to use the tunnel: ssh -vp 222 me@localhost ...
yukashima huksay's user avatar
7 votes
1 answer
1k views

Reverse tunnel, remote desktop session hangs when moving PuTTY window

I have a ssh server on my Windows 10 computer at home and when I set up a reverse tunnel from my Windows 10 work computer with PuTTY with this command: putty.exe -ssh user@xxxxxxxxxx -R 9999:...
Joost's user avatar
  • 171
0 votes
1 answer
406 views

How to tunnel network share directly to share's host?

I have tunneled mixed linux and windows clients to a 'within-firewall client' (that could access the share's host) before, so I know that that, at least, is possible. But what about tunneling ...
user41010's user avatar
2 votes
1 answer
2k views

How to host a local server using Heroku?

I want to host a Node.js website running on my laptop, so that it would be accessible to other people. I have tried port-forwarding on my router, but it does not work because my ISP has stopped ...
wolfram77's user avatar
  • 173
1 vote
1 answer
985 views

Reverse SSH connection at startup?

I have a Raspberry Pi, running Kali Linux. What I want it to do is, as soon as it boots, to connect with a reverse SSH connection to my machine at home, so I can control it wherever it is. I created ...
Nim's user avatar
  • 25
0 votes
2 answers
490 views

How can a "dropped" but still connected reverse-SSH tunnel be picked up again?

I have a remote Raspberry Pi computer that connects from behind its restrictive firewall to my server by reverse SSH tunnel. Imagine that this Raspberry Pi is on the difficult-to-access roof of a ...
BlandCorporation's user avatar
0 votes
1 answer
64 views

How could a reverse SSH tunnel be instantiated remotely via the web?

I have a remote server behind a firewall and a NAT with no external IP address. I want to be able to establish a reverse SSH connection with this server. The issue is getting the remote server to ...
BlandCorporation's user avatar
1 vote
0 answers
132 views

How to SSH tunnel back to a private host from an internet facing server

I have a server running SSH which is Internet facing (lets call this host A). I also have a server running which is behind a firewall. It is running sshd, however it cannot SSH out to the Internet, ...
Alistair Ross's user avatar
2 votes
0 answers
529 views

How do I prevent my SSH tunnel port forwarding rules from disconnecting when idle?

I've set up some reverse port forwarding rules on my KiTTY (fork of PuTTY) client (Windows 7) through a SSH Tunnel to my remote OpenSSH server (Windows 2012). Everything works great at first, as using ...
Ryza Jr.'s user avatar
0 votes
1 answer
2k views

How to setup VPN over reverse ssh tunnel using OpenWrt router?

I have TP-Link MR3020 with OpenWrt 15.05.1 with all goodware installed and I've been running reverse SSH tunnel (OpenSSH on both sides) to Amazon EC2 Ubuntu 14.04 instance and pptpd server on router. ...
Munsta's user avatar
  • 1
-1 votes
1 answer
545 views

tunnel Linux through windows machine

I am getting a new machine at work that I plan to have Linux (CentOS) installed. I am thinking to have a windows VM and a centos VM on top of ESXi, and CentOS will use windows VM (where I login and ...
xyliu00's user avatar
  • 101
1 vote
2 answers
1k views

SSH & SOCKS inside an HTTPS encrypted tunnel using a Windows Apache Server or what?

I have spent hours reviewing Super/Stack and other sites and I haven't found the answer yet. So, I am going to give it a shot to ask here again. I would point out some partial answers I found in ...
DjIns1ght's user avatar
0 votes
1 answer
2k views

SSH reverse tunnel netstat ports

I've a question about SSH reverse tunnel. I've an Ubuntu server with sshd installed. I open an SSH reverse tunnel from a remote machine. On that machine the connection is restarted every time the ...
Davide Gironi's user avatar
9 votes
1 answer
18k views

How to get a persistent reverse SSH tunnel using autossh?

(just asked this on SO but was adviced to take it here) I managed to create a reverse SSH tunnel between a Raspberry Pi 2 and a server of mine (server which has a static IP) and it works fine. The ...
Cedric Martin's user avatar
1 vote
1 answer
955 views

Reverse tunnel to access external API on firewalled server accessible only via bastion

If the title sounds confusing, it is, and I am highly confused. Here's the situation: I have a prod server prod1 that's firewalled incoming/outgoing traffic from/to all external Internet Additionally,...
Trevor Hartman's user avatar
0 votes
0 answers
833 views

Reverse SSH tunnel all ports to LAN

How can I reverse SHH tunnel all ports on a remote server so any requests made by the remote server go through the client? E.g. client ssh into server server requests google.com request goes from ...
Petah's user avatar
  • 1,776
1 vote
0 answers
406 views

Serve MJPG image stream from reverse ssh tunnel

Background I am working on a project that involves 2 servers. Server A is a VPS running Ubuntu 14.04 with a public IP address. Server B is running a MJPG service on port 8080 and does not have a ...
laytod's user avatar
  • 11
0 votes
1 answer
96 views

Debian script - reboot proces if remote connection failed

I am trying to figure out how to manage my debian and make it to reload script in /etc/init.d if the remote, reverese connection is not responding what I have at the moment is: root@pwnpi:~# ...
Adam's user avatar
  • 1
0 votes
1 answer
55 views

remote desktop for the terminal

Looking to allow a trusted friend access to an SSH session on my local machine. Is there a script or one liner that will allow for the ease of use I know from remote login software (teamviewer etc.) ...
yoshco's user avatar
  • 476
2 votes
2 answers
3k views

Browsing through ssh socks proxy -> through reverse tunnel

I have HostA behind a firewall establishing a reverse ssh tunnel to HostB. I want to setup a proxy on HostB that will forward the connection through the reverse ssh tunnel and out through HostA. I ...
Chintan Desai's user avatar
0 votes
0 answers
719 views

SSH Reverse tunnel assistance with application

Well it does in a way. If I do something like: ssh -R 27011:localhost:25566 USER@NAME.COM -p 27010 NOTE: substituting the real username and domain with USER@NAME.COM for security. NOTE: The port for ...
CaffeinePizza's user avatar
4 votes
1 answer
1k views

Expose a Reverse SSH Tunnel on the Remote server

I set up a Reverse SSH tunnel from my home computer to my work server: ssh -f -N -R 19999:localhost:22 remoteuser@server To connect to my home computer I have to first log in to the server and then ...
andresperezl's user avatar