Questions tagged [reverse-tunnel]

The tag has no usage guidance.

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

vnc connection over jump host with ssh

Assume three systems: A,B & C A established a reverse SSH connection on :6666 to B B can access A fine by ssh user@locahost -p 6666 C is in the same LAN as B and should be able to access A by VNC....
1
vote
1answer
37 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
0answers
119 views

nginx reverse proxy for ssh reverse tunnel?

192.168.1.100 (reverse proxy and ssh tunnel server) : centos 8 + sshd 8 + nginx 1.14.1 + firewalld disabled 192.168.1.101 (local web server) : windows 10 + web App (port 80) exposed to remote access ...
0
votes
0answers
61 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
1answer
72 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
1answer
228 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
1answer
198 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 /...
0
votes
0answers
21 views

I'm sometimes unable to ssh into an open reverse ssh tunnel with netstat reporting ~20 bytes at the receive queue. What can be the cause of this?

I have a remote machine A which is not accessible in any way other than through a reverse ssh, setup to fail when no port forwarding is possible, brought up at boot with systemd and kept alive through ...
1
vote
1answer
267 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
1answer
106 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
0answers
2k 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
1answer
803 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
0answers
357 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 ...
0
votes
0answers
72 views

How to tunnel from one host to another via a server

I have a raspberry pi running kali. This pi is connected to the internet via a 3g modem and as soon as it is powered on it reverse SSH's to an Ubuntu server i have with digital ocean. I would like to ...
1
vote
1answer
622 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
1answer
130 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
1answer
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
1answer
283 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
4answers
2k 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
0answers
566 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
1answer
2k 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
1answer
927 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
1answer
317 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 ...
1
vote
1answer
929 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
1answer
791 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
2answers
282 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
1answer
43 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
0answers
127 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
0answers
339 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
1answer
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
1answer
491 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
2answers
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
1answer
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
1answer
11k 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
1answer
767 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
0answers
653 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
0answers
333 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
1answer
94 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
1answer
52 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
2answers
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
0answers
529 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 ...
4
votes
1answer
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 ...
2
votes
1answer
987 views

SSH reverse tunnel to monitor and manage remote devices

I have a set a distributed set of devices running Ubuntu 12.04 that I am distributing to clients. I would like to manage them remotely. They may not have fixed IPs and potentially might be behind ...
0
votes
0answers
1k views

ssh connection refused error on cygwin on windows 8

I set up sshd on cygwin (via the openssh package), and started up the ssh daemon on port 7000. I opened up the port 7000 on my modem as well as windows firewall. From the cygwin prompt, when I connect ...
1
vote
1answer
78 views

Background chained ssh tunnel dropped instantly

I'm trying to establish the following chained ssh tunnel: ssh -A -t gatewayuser@gatewayserver 'ssh -N -A -t -R 55520:127.0.0.1:55520 user@dbserver' & This is part of a shell script, I want the ...
0
votes
1answer
176 views

Why my reverse ssh is closing when I try to connect to it?

I'm using a reverse SSH tunnel on Debian with openssh-server and autossh: something like -R 1234:localhost:22 with a monitoring port also set. Generally, it works well, but I'm having the following ...
0
votes
1answer
2k views

Best way to create TCP Reverse Tunnel

So, here is the network setup: + +--------+ +--------+ +--------+ | +--------+ +--------+ +--------+ | Client | ...
0
votes
1answer
2k views

Reverse SSH Tunnel from local ssh server to remote ssh client, forwarding traffic to another server on the client network?

Is this possible? local system w/ ssh server remote client running ssh client connection to (1) target destination on client's (2) network for local (1) traffic When the remote ssh client connects ...
1
vote
1answer
1k views

Reverse SSH tunnel - Fails on Certain Ports

I'm trying to forward very specific ports using a reverse SSH tunnel. MachineA is the target machine (the one the command is being run from) and MachineB is the tunnel (the one SSH is connecting to ...
0
votes
0answers
998 views

How can I set up Reverse port forwarding with remote desktop over UDP(Not TCP)?

The scenarios is as following: I have two computers, let's say one is work computer and one is home computer. The work computer is behind a firewall and I want to have access to port 3389 so I can ...