Questions tagged [ssh-tunneling]

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

0
votes
0answers
28 views

SSH Port Forwarding channel 2 open failed: Connection refused

Trying to test a setup for ssh forwarding but keep running into problems. Here's the setup: Local machine runs command: ssh -fNT -v -v -L 8087:127.0.0.1:8077 user@remotehost and then remote ...
0
votes
1answer
46 views

Create Network Interface from SSH Tunnel

To route your network traffic through SSH, most people would tell you to pass the -D option to create a SOCKS proxy on localhost that you can configure your applications to use. However, a simple ...
0
votes
0answers
21 views

Port scanning test at a library

So I am trying to teach myself some basic networking skills. I dont have wifi at home so i frequently use public wifi. I am trying to ssh into my android phone so i can run commands remotely and be ...
2
votes
1answer
47 views

Remote port forward to ldap hanging

I have a windows machine (LOCAL), a Centos 7 VM (VM) and an LDAP (LDAP) I need to talk to through VM. LOCAL can ssh into VM, and can independently talk to LDAP. VM can't talk to LOCAL or LDAP ...
0
votes
0answers
21 views

What are the performance overheads between logging in to another user account via ssh vs login

In Gnu/linux systems, I can perform a full local login (i.e. where logname returns the same output as whoami) by two methods: login: sudo login second_user (prompted for password) ssh: ssh ...
1
vote
1answer
51 views

List all connected and previously connected users to SSH tunnel

I want to know who is accessing my server at any point in time and see logs from the past, however it is behind an SSH tunnel. How can I do this? EDIT: See tags, running debian on both machines. SSHD ...
0
votes
0answers
9 views

Accessing Jupyter server behind firewall, how to setup the tunneling through VPS?

Settings When I am physically in the office, both the "local" and the "remote" machines are behind the same firewall, and the "remote" machine is accessible by simple ssh command: ssh username@...
1
vote
1answer
38 views

How to use TOKENS with ssh LocalForward directive?

With the following ssh_config: Match all IdentityFile /opt/ssh/id_rsa StrictHostKeyChecking no ServerAliveInterval 30 ServerAliveCountMax 3 ControlMaster auto ControlPersist 300 ...
0
votes
0answers
23 views

Non x11 apps over x11

I am seeing odd behavior on my X11 server on CentOS 6. X11 Forwarding works as you would expect. I can ssh (with -Y or -X) from CentOS 6 and launch & display xclock, but I can’t do the same for ...
0
votes
0answers
25 views

ssh tunneling closed by remote host

as from the beautiful answer in this, I am trying to make a ssh tunneling from my desktop to a cluster. My .ssh/config looks like: Host gateway User rudrab Hostname <ip of the ...
7
votes
4answers
212 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 output on the server if I run netstat: default@debian:~$ sudo netstat -pln Active Internet connections (only servers) ...
0
votes
1answer
77 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
50 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
113 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
62 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
16 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
47 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
206 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
29 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
9 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
46 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
14 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
27 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
123 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
301 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
80 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
198 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
319 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
521 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
53 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
98 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
63 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
30 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
38 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
48 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
133 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
352 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
63 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
329 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
174 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
89 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
2k 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
481 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
207 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
65 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
158 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 ...
4
votes
1answer
307 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
572 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
82 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 ...