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 [ssh-tunneling]

An SSH tunnel provides an encrypted channel based on the SSH protocol.

0
votes
0answers
8 views

Get source IP from reverse SSH tunnel

If I use a client to create a reverse tunnel with SSH using -R I will get this input in the server if I run netstat: default@debian:~$ sudo netstat -pln Active Internet connections (only servers) ...
0
votes
1answer
26 views

Use bash EXIT trap to confirm or cancel ctrl+d [duplicate]

Is there a simple way to require confirmation before logging out of a shell, and to prevent the shell from exiting if confirmation is denied? This would be useful to avoid accidentally terminating an ...
0
votes
3answers
33 views

Problem creating SSH tunnel on linux

I'm following this guide to setup VNC on my DigitalOcean droplet. Everything works fine up to step 3. When I try to create an SSH connection on my local computer using ssh -L 5901:127.0.0.1:5901 -C -...
3
votes
1answer
45 views

Seamless SFTP tunneling / jump box

I'm trying to set up a way for users to connect to the same gateway server for SSH/SFTP (SFTP a priority, SSH nice to have) and have that gateway server route the users to private servers inside my ...
0
votes
0answers
23 views

SSH through Bastion honouring ControlPersist on Bastion

I have the following setup, where I am trying to connect from "Host A" through "Bastion" to "Host B". Simple you might think and something which has been done hundreds of times before, but I am trying ...
0
votes
0answers
13 views

How to access the floating ip in browser rather than a localhost?

I have an instances that was made in OpenStack which have a floating IP for its instance, the IP for this machine is 10.1.1.164. I tried to forward this instances so it will accessible in my firefox ...
0
votes
0answers
25 views

ssh tunnel with intermediary machine using named pipes and without listening on any ports on the intermediary

I would like to use an intermediary host to tunnel between two other hosts which are both behind firewalls, and cannot accept incoming connections. For security reasons, I wish to avoid having any ...
2
votes
1answer
77 views

How to create SSH reverse tunnel with iptables forwarding?

I have a server in my home network (cannot port forward) and a VPS on the WAN. I need requests on a certain port, to, not from, the VPS to be forwarded to my home server. I have an SSH tunnel which ...
0
votes
0answers
26 views

Ubuntu - remote ssh; cannot move up a directory from Home

I am connecting to a remote server using Ubuntu's file explorer. Initially, it goes straight into the directory containing opt, var, root etc folders. Eventually, maybe half an hour later, I will be ...
0
votes
0answers
8 views

Does it make a difference if a the remote LAN proxy is the router or non-router?

Remote LANs are configured with routers that are WAN accessible through SSH for the purpose of http tunneling to enable the 'mother ship' to access remote LAN devices with a web browser. If the ...
0
votes
0answers
26 views

how can I set destination based on username for ssh tunneling

While connecting via ssh to a server and using differing usernames I keep landing into different devices. I do believe ssh tunneling must be involved somehow, but I cannot figure out how is this ...
0
votes
0answers
29 views

Yum update with ssh socks5 tunnel on EL6 failed

I have to perform update on server hasnoinet that. I created the ssh tunnel on hasnoinet box and ensured that he works: ssh -D 1080 hasinternet curl --socks5-hostname localhost:1080 google.com I ...
0
votes
0answers
13 views

Analyze traffic between multiple ssh hops in a ssh chain

The test case is as follows: (Host A) ---ssh---> (Host B) ---ssh---> (Host C) When Host A connects to Host B, Host B transparently connects to Host C. The test case is working well. This ...
0
votes
0answers
26 views

ssh tunnel between two servers [duplicate]

I am creating the ssh tunnel using ssh -D 1080 hasinet from hasnoinet host, when from another session on hasnoinet do: curl google.com:1080. It doesn't work.
0
votes
1answer
62 views

How do I create a persistent tunnel device in sles15 (with or without wicked xml config)

I'm trying to simplify some of my configs for sles15, pushing out tunnel configs to my machines via ansible. Currently whenever I configure a tunnel, I do it on the fly using ssh from the machine ...
2
votes
0answers
146 views

MySQL Workbench and multi hop ssh tunnel

I have an issue with MySQL Workbench. This is how my connection looks like: laptop => bastion:22 => machineX:22 (10.10.10.10) => mysql:3306 So, I have two hops before I can reach the ...
0
votes
0answers
48 views

how to close/reuse ssh LocalForward ports

I need to ssh to multiple hosts having this configuration: Protocol 2 ExitOnForwardFailure yes ServerAliveCountMax 1 ServerAliveInterval 3 TCPKeepAlive no ControlMaster auto ControlPath ~/.ssh/...
0
votes
1answer
101 views

SSH proxy error [duplicate]

I would like to be able to establish an SSH connection to a remote server, through an IPSec tunnel. So I need to use the local endpoint as an intermediate hop to achieve this. The following command ...
1
vote
0answers
209 views

Reverse SSH-Tunnel with Socket

I would like to establish a reverse SSH-tunnel (with OpenSSH_7.4 or newer). The purpose is to allow SSH-connections from a central server to multiple devices whose task it is (among others) to ...
1
vote
2answers
204 views

Creating a ssh config for a reverse tunnel + local forward

I'm trying to create a ~/.ssh/config entry for the following scenario: I have a linux box in a private network somewhere, a vps server which is accessible from anywhere and my local macbook. The ...
0
votes
0answers
39 views

Why do I keep my SSH connection, after suspending, if I have a window open on the server?

I've noticed this strange behaviour. Everytime when I'm connected to a remote machine, using SSH, and want to go away from my machine (for lunch, for example), I suspend it. And when I type in the ...
1
vote
1answer
88 views

ssh ethernet tunneling as normal user

I would like to connect 2 tap-devices. The tap-device on the remote server is owned by "user". This is my test-command: # ssh -oTunnel=ethernet -w0:0 user@server But it does not work, I get this ...
0
votes
1answer
55 views

How to do ssh tunnelling into a private network?

My local machine (A) can access a login server (B) via SSH. The login server (B) can access a computing server (C) via SSH. That is, (B) has a public IP. (C) has only a private IP within the private ...
0
votes
2answers
20 views

how to access a server in a VPN from a home computer via a separate notebook with the vpn connection

For my local work environment I would like to access all my companies server directly from my workstation elsewhere. To make this really fun the only access possible is via the VPN on the company ...
0
votes
0answers
33 views

Use ControlMaster socket on bastion

I have a host that once full configured has no ingress. On a bastion, I setup a SSH tunnel with ControlMaster prior to the host removing ingress access. Can I SSH directly to the no-ingress Host ...
1
vote
1answer
37 views

Utilize established ssh tunnel from another shell?

I have an established ssh tunnel (port 9876) that is running in the background and was established with this command: /usr/bin/autossh -M 0 -o ServerAliveInterval 30 -o ServerAliveCountMax 3 -D 9876 ...
0
votes
0answers
94 views

default routing to tun interface though socks proxy

Here is my default (and working) route setup on my fedora workstation: [root@localhost ~]# ip route default via 192.168.0.1 dev enp0s3 proto dhcp metric 20100 192.168.0.0/24 dev enp0s3 proto kernel ...
0
votes
1answer
217 views

Java KVM Console with an SSH Tunnel Through a Jumphost

I'm trying to use a KVM Console via an SSH tunnel and I'm getting a Connection Refused Java Error. Here is what I'm doing: On my Macbook I am establishing an SSH tunnel to my remote server via a ...
0
votes
2answers
44 views

Creating persistent netcat link

I have a remote raspberrypi that uses autossh to connect to my local machine (with reverse tunnel -R). This should feed a dump1090 instance on my local machine. I'm using /bin/nc localhost 40005 | /...
0
votes
1answer
165 views

SSH tunnel to browse localhost, super slow

To visit sites/services like jupyter notebooks and rstudio-server on my server I make a ssh tunnel and then just browse them in my webbrowser on my local machine, however, since yesterday, all my ...
1
vote
1answer
109 views

Unable to create a proper PEM for Redis Desktop Manager

On Ubuntu, I have a problem to establish a connection to redis server using SSH tunnel and SSH key with Redis Desktop Manager (RDM). What are the symptoms? I can connect to the server where redis is ...
0
votes
0answers
64 views

Connect to remote server through a trusted (by the server) proxy machine (using ssh tunneling or “user-space” VPN)

I have an application (APP) which runs on a remote computer (COMPUTER_A) and connects to another remote computer (SERVER) on a specific port (PORT) to retrieve some information. Now, I want to deploy ...
3
votes
6answers
1k views

Connect to a device's SSH on a network that has no inbound traffic enabled and no static IP address

what I'm trying to do is to enable a Raspberry, physically placed in a client's site, that has internet access via Dynamic IP, to receive SSH commands from the wild without having to manipulate the ...
1
vote
1answer
233 views

How to setup a remote ssh server for tunneling to localhost?

How can setup a remote ssh server for exposing my local website to the internet using my domain on aws by tunneling? Like: By using serveo.net that can be done by running following command on my ...
0
votes
1answer
148 views

sshfs through two hops?

I want to mount a folder in a remote location to /mnt/volume on my mac but this folder is usually accessed through a login server myname@server-login.com using SSH like ssh -A -Y -o myname@server-...
-3
votes
1answer
59 views

Is it possible to have a shared port for ssh tunneling that segregates sessions based on client?

Is it possible to have a shared port for ssh tunneling that segregates sessions based on client? For example, if I have client1 using a tunnel to port 9999 on a shared server for an ssh tunnel to ...
0
votes
1answer
101 views

Reverse tunnel with autossh exits with 255

It seems since autossh changed their syntax, I am a bit overstrained in establishing a reverse ssh tunnel via autossh with my server. This is the script I am trying to run: autossh -M 20000 -f -N -R ...
3
votes
1answer
216 views

Establishing reverse SSH-tunnels via systemd

I am currently porting all my crontab configs into systemd-services, i.e. creating units for tasks that needs to autostart on my computers. One of these units is giving me a headache. I called it "...
0
votes
2answers
385 views

How to redirect website in restricted network through ssh tunnel

I have established a reverse ssh tunnel into a restricted network to an aws server, i.e. to access it, I ssh into the aws server and from there I get access to the machine in the restricted network on ...
2
votes
0answers
65 views

Remove inactive SSH process (on server) after connection dropped (on client)

I'm using the following command on a client for port tunneling: autossh -M 20000 -4 -N -f -R 18822:localhost:22 <user>@<vps-ip> Sometimes the client would lose connection or power for a ...
2
votes
0answers
102 views

launch reverse tunnel on init with autossh in the background

I need an init script which will establish a reverse tunnel connection to a server. I've come up with the following start script: #! /bin/sh ### BEGIN INIT INFO ### END INIT INFO case "$1" in ...
1
vote
1answer
206 views

launch reverse tunnel with autossh on bootup in Ubuntu

I would like to launch a ssh reverse tunnel on system launch. The following line let's me establish the tunnel fine - but I end up being logged into server which I don't want, especially not from an ...
0
votes
0answers
20 views

How to secure a common tunnel relay server

I would like to use a single AWS server as a relay to access multiple client hosts that each would have a reverse ssh tunnel to the server. I need them to be isolated between each other meaning that ...
5
votes
2answers
265 views

How safe is SSH when used for tunneling?

Scenario: I want to connect from Client A to Client B using SSH/SFTP. I can not open ports on either client. To solve this issue, I got a cheap VPS to use as a relay server. On Client B I connect to ...
1
vote
2answers
33 views

How to configure ssh to allow specifying a hostname/IP in DISPLAY variable?

I have an old application I'm trying to run on CentOS6 that uses a couple machines: abc1 and abc2. I log into abc1 and run the application, which ssh's to abc2, changes the DISPLAY variable to abc1:0....
0
votes
1answer
65 views

What's the equivalent ssh config of this ssh tunnel command?

I have a host2 remotely forwarding its ssh connection to port 2222 on host1. I am using the following command on host0 to connect to host2 via host1. ssh -tt host1 ssh -p 2222 localhost Is there an ...
0
votes
2answers
196 views

mux- prefix in ssh ControlPath with Bastion server

I am looking at different samples for configuring ssh config to support Bastion connection to my cloud's internal servers. I'v hae encountered several (working) samples having the prefix "mux-" on ...
0
votes
0answers
300 views

Why AddressFamily needs to be configured for X11 forwarding?

Amidst configuration for X11 forwarding thru ssh, it is required to add AddressFamily inet option in /etc/ssh/sshd_config as per this answer, to work. On RHEL 7.x box, that is used in our case, X11 ...
0
votes
1answer
2k views

MobaXTerm X11 forwarding issue with UNIX

Ran below commands on MobaXTerm: Using MobaXTerm terminal on windows laptop: > xhost +ulv78.abc.com ulv78.abc.com being added to access control list > ssh -l someuser ulv78.abc.com # RHEL 7.x ...
1
vote
0answers
157 views

Setup SSH tunneling to run some commands from the remote server

. Here's what I currently have done: I have an EC2 instance (Private Instance) in a private subnet with no NAT gateway or NAT instance configured. In other words, this doesn't have any route to the ...