Questions tagged [reverse-tunnel]
The reverse-tunnel tag has no usage guidance.
72
questions
0
votes
0
answers
17
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 ...
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 ...
0
votes
1
answer
63
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 ...
0
votes
0
answers
99
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, ...
0
votes
1
answer
27
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, ...
0
votes
0
answers
57
views
Reverse RDP connection for access PC which sits behind NAT
Is it possible to do reverse RDP (Remote Desktop Protocol) connection without SSH tunneling?
For example using OpenSSH you can do direct SSH connection (PC-Сlient initiates the connection, PC-Client ...
0
votes
0
answers
36
views
How can a reverse-SSH connection be launched and maintained on Ubuntu boot with systemd?
My mum has a wee laptop that needs, when it boots up, to reverse-SSH connect itself to a server (so I can help out when needed).
I'm struggling to get the connection to persist when it is started by ...
0
votes
0
answers
7
views
Browsing the web of a remote network via local reverse SSH tunnel on another device [duplicate]
Given the below network setup
https://i.imgur.com/eMVJ5sz.jpg
How would we go about exploring the web from Device C as if we were inside of Network B? Without using any external port forwarding.
I ...
0
votes
0
answers
786
views
Helium Crypto Miner w/ tunneled port 44158 to cloud server, stuck in relay mode
I'm using autossh to create a reverse-tunnel to my cloud server, to expose my internal network Helium Bobcat Miner 300 device port 44158 externally (with a static IP address) - to get it out of ...
1
vote
1
answer
168
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 ...
0
votes
0
answers
150
views
How to set up reverse connections through double hop OpenVPN for multiple clients?
I'm trying to organize a workflow for multiple clients to access remote laboritory behind a VPN. The VPN connection is allowed to be initiated from a single machine only, so I've set up an ...
0
votes
0
answers
29
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 ...
0
votes
1
answer
366
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 ...
1
vote
1
answer
102
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 ...
0
votes
0
answers
97
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 ...
0
votes
1
answer
386
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 ...
0
votes
1
answer
2k
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....
0
votes
1
answer
581
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 /...
1
vote
1
answer
570
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 ...
0
votes
1
answer
160
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 ...
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 "...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
444
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 ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
173
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?
0
votes
1
answer
1k
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 ...
0
votes
1
answer
410
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 ...
1
vote
4
answers
3k
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 ...
3
votes
0
answers
613
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 ...
1
vote
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
...
6
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:...
0
votes
1
answer
341
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 ...
2
votes
1
answer
1k
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 ...
1
vote
1
answer
873
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 ...
0
votes
2
answers
409
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 ...
0
votes
1
answer
50
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 ...
1
vote
0
answers
131
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, ...
2
votes
0
answers
429
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 ...
0
votes
1
answer
1k
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. ...
-1
votes
1
answer
504
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 ...
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 ...
0
votes
1
answer
1k
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 ...
6
votes
1
answer
15k
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 ...
1
vote
1
answer
876
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,...
0
votes
0
answers
695
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 ...
1
vote
0
answers
364
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 ...
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:~# ...
0
votes
1
answer
54
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.)
...
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 ...
0
votes
0
answers
646
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 ...