Questions tagged [ssh-tunnel]

An SSH tunnel leverages the SSH protocol to transport unencrypted data through an encrypted connection.

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

Create an SSH tunnel starting from the jump server [migrated]

I have this server that I don't own so I cannot register new users or new authorized keys but I have to temporary share my access with a different user. I don't want to share my username and password. ...
0
votes
0answers
9 views

Use Socat to connect access a MySQL server over an SSH tunnel through a bastion

Context/Background I have several machines running in a network that are accessible only through a bastion: jump-box.public-domain.tld. Some of these machines are MySQL servers. To access the MySQL ...
1
vote
1answer
52 views

Connecting to db via SSH on docker fails

I'm trying to connect to a database via SSH from my docker container. I'm getting an error could not connect to server: Connection refused Is the server running on host "0.0.0.0" and ...
0
votes
1answer
25 views

SSH tunnel with 3 hops

Here What I like to achieve : windows10(Laptop)->ssh to Jump1 -> ssh Jump2-> ssh to final box(192.168.0.1). my website 192.168.0.2) accessible through final box so I want to access the ...
0
votes
0answers
17 views

How to create LAN proxy server with traffic funneled through ssh -D

I want to create a SOCKS proxy server on my LAN, so it will be available to all users on wifi. My goal is to funnel all the traffic from the SOCKS port on the lan server through a ssh -D connection. I ...
1
vote
0answers
20 views

Synology DS2415+ no ssh logs

as the title says, my synology sshd service appears to not be producing any ssh logs. I've tried this guide: https://sites.google.com/site/benbriedis/ssh-on-synology without success. I need the logs ...
-1
votes
2answers
52 views

ssh tunnel for https SOAP web service

I need to consume a web service from my local computer but the web service allows only the predefined ip's so i need to consume the service via a middle host which has an ip defined to reach the web ...
-1
votes
1answer
21 views

VNC proxy-jump, possibly with ssh

I use VNC a lot on a specific machine. But it's on a separate network that I can't reach directly. +----------------+ +----------------+ | Linux | | Windows | +---------...
0
votes
0answers
20 views

WSL2 remote forward connect back on remote host

I'm trying to use rsync on my dev server to download files to my local machine after checking out a branch on the dev server. Before using wsl2, I used to be able to do the following: Remote server ...
0
votes
0answers
125 views

ssh port forwarding (tunneling in HPC)

I have an application server that runs on a compute node. The server opens a port (9000) and I then run a command for tunneling between my local machine and the server: ssh -N -f -L 9000:compute-node:...
1
vote
1answer
34 views

SSH tunnel attempt. Unable to establish SSH connection without actual shell. (Arch Linux)

So I'm trying to figure out how to establish a tunnel, but nothing else. I don't want the user to have shell access. I found this ssh tunneling only access Is this information outdated or something? ...
0
votes
1answer
98 views

systemd service produces Exec format error

I have created the following systemd service to automatically keep an autossh tunnel open between two servers: #Systemd unit file for autossh [Unit] Description=Autossh Tunnel [Service] Type=forking ...
0
votes
1answer
17 views

Make outbound traffic from SSH forward go through a specific interface

I have a private application hosted on a server. It only allows connection from localhost. However, the default interface configured on the server is eth0. So I need to set the interface to lo or the ...
0
votes
1answer
10 views

How to connect to remote mysql through two ssh tunnels?

I can ssh into a mysql server via an intermediate host from home: Peter@home -> Ubuntu a.b.com -> MySQL on Ubuntu: x.y.org by: ssh -t peter@a.b.com ssh mary@x.y.org as x.y.org only ...
0
votes
0answers
108 views

Debug problems of ssh tunnel to remote mysql connection

I am running on my VPS Ubuntu 20.04.1 LTS and locally Ubuntu 18.04.3 LTS and I want to create a ssh-tunnel to connect to my database to run SELECT's for reporting in my laravel 6 application. My ...
1
vote
1answer
114 views

Which Traefik config to replace Ngrok?

I have a server with a public IP and Traefik V2 running on it (dockerized). I have localhost.example.com pointing to the server's public IP. I can make a SSH reverse tunnel between my laptop and the ...
0
votes
1answer
22 views

SSH method to access from the remote a resource that's only accessible from the local machine

My company has a self hosted git server that only accepts connections from within the company's network. In my local machine, while connected to the company's VPN, I can access my git remotes as: ssh:/...
1
vote
1answer
115 views

How to add local forward setting to my ssh config file?

I currently can do this: ssh 12.34.56.78 -L 8888:localhost:8000 And I can then open my local browser to localhost:8888 and see the app running in my server at 12.34.56.78:8000. I want to avoid having ...
0
votes
1answer
38 views

Linux: NAT punchback for VPN/SSH services [closed]

I have remote Linux server behind NAT, without ability to forward ports. All outbound ports are open though. I need to be able to connect to OpenVPN & SSH ports on this server from arbitrary PCs / ...
0
votes
1answer
24 views

What's wrong with this SSH port forwarding?

I am trying to setup port forwarding to access port 10050 via SSH on a remote server. I want to connecto to port 10050 on localhost and that should forward my request via SSH to port 10050 on the ...
0
votes
1answer
139 views

Avoid use of SSH agent

I use ProxyCommand with the intention of avoiding ssh agent forwarding. Today I noticed that Gnome was starting ssh-agent, which I'm trying to avoid using so I disabled it. I'd like to not have the ...
1
vote
0answers
61 views

SSH forwarding - x server display remote program on local machine

Two debian machines Debian 10 Kali Linux 2020 rolling lak:~# sudo ssh -XC spusr@192.168.4.2 works to forward specific programs like firefox, nautilus connected via ethernet lan Things noticed ...
1
vote
2answers
309 views

SSH, via a Jump Host, with a dynamic port number

I've got 3 hosts: My computer. A Jump Host (aka bastion) with a static IP. A server with a dynamic IP; behind a NAT router/firewall, with no inbound ports open. The server currently connects to the ...
1
vote
1answer
249 views

SSH forwarding issue. “Permission Denied”

I just built a linux bastion, let's call it "bastion1" (IP: 66.66.66.6) on RHEL 8 to replace an older RHEL 6 bastion "bastion0" (IP: 77.77.77.7) that is doing the exact same ...
1
vote
1answer
83 views

AutoSSH through Firewall - Best practice for many devices on network?

My team is trying to find a solution to remotely access and update multiple Linux devices behind a firewall at several locations with their own firewalls. Traditionally, we would visit the business' ...
1
vote
1answer
80 views

SSH-Tunnel Port forwarding

I have 2 VM, one with private IP-address(behind the NAT) and other with public. I made SSH-tunnel with NAT. The goal is to connect public VM into network behind NAT and forward some traffic through it....
1
vote
0answers
159 views

ssh tunnel for websocket

I have a websocket service at remote server port 4444: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0....
1
vote
2answers
78 views

How to restrict an SSH tunnel with SOCKS v5 to only a certain outbound IP address on an SSH server? (Debian)

I do find a lot of information of how to limit incoming access to certain IP addresses, but not do do it on the other side, the outbound side. When i have a SOCKS 5 Proxy. I'm primary looking for a ...
0
votes
0answers
90 views

Access subdomain through SSH connections only

I want to make a subdomain on an Ubuntu 20.04 Server that has a LEMP stack installed. I am connecting to this server through SSH with a private key authentication. I want to restrict all access to ...
0
votes
0answers
35 views

SSH Reverse Tunnel for two Servers

I'm facing issues to setup a reverse SSH tunnel that two servers can use it. We have the following scenario: Two servers on Azure cloud that have a solution which shares same database on both servers ...
1
vote
0answers
53 views

Enforce tunneling SSH user directly into docker container

We want to setup a gitlab installation with their official docker images. To support connection to git repositories via SSH we see two options. Bind container port 22 to host port 22 Bind container ...
1
vote
0answers
532 views

ping packet loss in wireguard UDP over TCP + UDP over socat tunnels

I have a wireguard tunnel mostly working between two Debian systems, but I had to workaround a ISP firewall (firewall X in the diagram below) that blocks everything inbound and prevents Server B from ...
0
votes
1answer
33 views

Setup AWS Wordpress server for local access by SSH Tunnel Fail

Steps taken: Installed Debian Buster and Wordpress (Aws Lightsail own version). Firewall restrict http and https access to only 127.0.0.1 Setup Putty tunnel with SSH port 22 (privatekey) Putty SSH ...
1
vote
1answer
338 views

SSMS via SSH tunnel

I'm trying to use SSMS to connect via a SSH tunnel (using Putty) to a SQL Server default instance running on an AWS server. I can establish the tunnel and access data in the DB using SQLCMD from a ...
1
vote
0answers
57 views

SSH pauses - perhaps MTU/packet size too large - how to confirm and possibly resolve?

I have a MacOS client and Linux server (non-root access). I'm using 2 versions of a tool for remote desktop control. Version 2 worked pretty well - some small bugs. The vendor has updated to version 3....
1
vote
1answer
35 views

sshd: restrict outgoing address of forwarded connections

My vps (running Debian buster) has multiple IP addresses, both IPv4 and IPv6. They are used to bind the listening sockets of the few different services running on it - basically just web and smtp for ...
0
votes
0answers
17 views

is it possible to add a reverse tunnel through the jump host when making a multi-hop ssh?

I have a configuration with 4 servers residing on different subnets. The existing network restrictions are hard constraints. proxy1 is running a squid proxy and able to reach the internet; no other ...
0
votes
0answers
63 views

ssh tunnel from nagios to greenbone socket

i got 2 servers running. serverA is a monitoring solution check_mk. serverB is a vulnerability scanner with gvm20.08 (openVAS). On my monitoring side i want to retrieve scans, tasks, targets etc. from ...
0
votes
0answers
16 views

autossh creates a local-binding tunnel while just a remote-binding was specified

In the /etc/rc.local file of my Raspberry Pi, there is the following command: su pi -c 'autossh -f -- -N -i /path/to/some/somekey -o "ExitOnForwardFailure yes" -R 10076:localhost:22 user@...
0
votes
3answers
182 views

How to ssh tunnel through one-to-one NAT

I need a SSH tunnel from my home to private IP 10.4.100.6 as diagrammed here: +-------+ +-----------------+ +------------+ +-------------+ | | | | | | | ...
0
votes
1answer
212 views

How to setup RDP connection to a Linux (Ubuntu Server) VM in Azure using SSH tunnel?

I am reading https://docs.microsoft.com/en-us/azure/virtual-machines/linux/use-remote-desktop and is stuck at the following passage: Specifying a password does not update your SSHD configuration to ...
0
votes
0answers
31 views

Is routing traffic to a service via an SSH tunnel viable from a reverse proxy?

We have a central server that is configured with a QuoVadis SSL certificate and a number of 'Edge' devices that run services (in this example on port 1880). We'd like to be able to access the services ...
1
vote
1answer
394 views

Proxying services through remote with traefik reverse proxy

For my homeserver project I'm hosting multiple services on my local server with services that I want to have outside access to (for example a minecraft game server) port forwarded with reverse ssh ...
0
votes
0answers
12 views

sshfs to two authentication ssh server

I am using win-sshfs from this project. The server I am going to connect has two authentication. The problem is that I cannot input the code due to the limitation of the software. I am wondering that ...
0
votes
1answer
475 views

Is a VPN better than SSH port forwarding for Windows Remote Desktop?

Setting A small business (too small to justify a Terminal Services Gateway) wants certain users to be able to access their Windows 10 desktops from home. I have had good luck with Windows Remote ...
0
votes
1answer
50 views

How to troubleshoot linux iptable portforwarding

There's already tons of help and guide on how to do this. But for some reason I can't get it working and am not sure how to troubleshoot it. I've got an RDS postgres instance with the private IP 10.0....
0
votes
2answers
149 views

Ssh relay without opening ports

I have machines A and B that can access a Relay machine via ssh, but not vice versa. Can I access machine B from A via the Relay machine without opening ports except 22 as that port is the only one ...
0
votes
1answer
184 views

SSH Sometimes works, sometime doesn't - local network

I've started having the strangest of issues where when I attempt to SSH into the server sitting next to me, it refuses to connect. If I keep trying eventually it will connect. ~ $ ssh 192.168.0.10 ssh:...
0
votes
0answers
59 views

centos opens only 505 ssh remote tunnels?

to evaluate how many ssh tunnels does centos 8 support, I write an app on windows that initiates ssh reverse tunnel to centos 8 through a loop var session = ssh("centos", "user1", &...
0
votes
0answers
113 views

How to go passwordless for a nologin user and SSH tunnel?

I have a user to be used exclusively to access a floating license via an SSH tunnel. Match User myuser PasswordAuthentication yes ForceCommand /sbin/nologin PermitOpen localhost:55555 ...

1
2 3 4 5
16