Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [reverse-tunnel]

The tag has no usage guidance.

0
votes
1answer
58 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
302 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
53 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
168 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
50 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
185 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
82 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
801 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
149 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
3answers
632 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 ...
2
votes
1answer
383 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
674 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 ...
4
votes
0answers
426 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
180 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 ...
0
votes
1answer
405 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
510 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
169 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
33 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
99 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
278 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
913 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
409 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
827 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
594 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 ...
2
votes
1answer
6k 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
645 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
446 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
297 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
90 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
50 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.) ...
1
vote
1answer
2k 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
428 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 ...
3
votes
1answer
890 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
854 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
61 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
135 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
792 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 ...
0
votes
0answers
137 views

Is there a way to create a reverse connection without using SSH?

I have a device I would like to make connections to the outside world from, that only accepts incoming connections. What I have right now is: ssh -ND 8000 user@localmachine & ssh user@...
0
votes
0answers
1k views

Remote Desktop (RDP) + Tunneling

Sorry for the long story, I tried to be crystal clear. * A little back ground * As part of a project we need to be able to access certain computers (hereafter called clients) using remote desktop (...
1
vote
1answer
3k views

Is it possible to make a reverse tunnel using MOSH?

on My PC: mosh --ssh="ssh -R 1024:localhost:22" root@RaspberryPi on Pi: ssh -p 1024 root@localhost But I got this message: pi@raspberrypi ~ $ ssh -p 1024 root@localhost socket: Address family not ...
0
votes
1answer
981 views

SSH Reverse Tunneling

I use this command to create a reverse tunneling from my home machine to an AWS instance, so that I can connect to my home machine from anywhere ssh -R 5000:localhost:8000 aws_machine However, when ...
0
votes
0answers
1k views

Reverse port forward with EC2

I have two computer behind NATs so I thought of using a free tier EC2 server as a SSH relay. Followed this simple tutorial http://www.acooke.org/cute/ReverseRem0.html which seemed pretty reasonable. ...
1
vote
1answer
4k views

connect to Windows share from Ubuntu Server using reverse ssh tunnel

I'm missing a piece of this puzzle so I hope someone can help me. The SETUP: My computer with Windows O/S is behind a NAT/Firewall at work and I can not open any ports to forward. At home I have a ...
3
votes
1answer
366 views

Run a server behind router

I own a virtual private server. I currently want to run a server on my local computer (behind a router that I don't have admin access to so I can't port forward). Can I use the virtual private server ...
2
votes
2answers
2k views

Need to figure out a way for RDP to call back to a local listener on a specified Ephemeral port though a Reverse SSH Tunnel

This relates to a previous question that was getting entirely too long and confusing due to my constant updates and edits and I was told to re ask it. So I am cleaning it up and asking a more direct ...
5
votes
1answer
2k views

How to specify what port RDP responds to?

I need to figure out a way to force RDP(Remote Desktop) to respond to a specific port Instead of a RHP(Random High Port). I am not asking how to change what port RDP "Listens" on, but rather the ...