Questions tagged [ssh-tunnel]

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

An SSH (secure shell) tunnel provides a secure connection through which unencrypted data can be sent.

This technique can be useful for:
- Providing security for insecure network protocols.
- Hiding one's true location (ip).
- Circumventing blocked ports in firewalls.

857 questions
0
votes
0 answers

SSH from A through B, C to D using private key on B to access C and D

I'm looking for a way to access to a server (D) through 2 proxy (B and C) using SSH keys stored on the first proxy (B). My computer (A) isn't allowed to save the key. I understand the way to access to C using the key on B with an ssh config file (cf…
Thibaut Guirimand
  • 153
  • 1
  • 1
  • 6
0
votes
1 answer

SSH Tunnel(Port Forward) vs SSH ProxyJump, which one should I use in this Specific case, Me -> JumpSever -> TargetServer

I'm new to SSH Tunnel, I have read the wikibook of OpenSSH Proxy over and over, still so confused. the Goal is building a double Proxy with only SSH Tunnels(Port Forwarding) or ProxyJump (not really sure what I should call them) For example, me…
rm -rf
  • 55
  • 6
0
votes
1 answer

Automate ssh port forwarding using DNS

I have a number of ssh hosts (a dozen), for simplicity host1, host2, etc. I frequently need to forward port, e.g. ssh -L 8888:localhost:8888 host1 ssh -L 8889:localhost:8888 host2 ssh -L 8890:localhost:80 host2 This is annoying since 1) I need to…
Alleo
  • 101
  • 1
0
votes
1 answer

How to do port forwarding for GNS3 server (SSH tunneling)?

I have a GNS3 server, and I'm trying to add iptable rules so that when someone on my team connects on port 1100, they get routed to an internal IP such as 192.168.122.2:22. This internal IP belongs to a bastion host of a GNS3 project. The end goal…
0
votes
0 answers

Ssh portforwarding options are working in the command line but not when using ssh config file

This works in the command line. ssh -i ~/.ssh/id_rsa x.x.x.x -p 22 -R :10001:localhost:9090 -R :10001:localhost:22 But when using the ssh config file, it fails. Below is the contents of the config file. Host decryptor HostName …
0
votes
1 answer

How to forward port 8080 from a distant server to the client from the client using a tunnel ssh?

I have installed GitLab in docker on a distant machine. I would now like to forward the port 8080 from this distant machine to my local port 8080. On the distant machine: sudo docker run --detach --hostname gitlab.example.com --publish 443:443…
vvvvv
  • 174
  • 10
0
votes
0 answers

how to connect to mongodb server via ssh tunnel with Proxy Jump (ProxyCommand)

I have an ssh config file like this. I have a proxy jump to host1 from test2. Host host1 Hostname xxxxxx.us-east-1.elb.amazonaws.com Port 2222 User xxxx IdentityFile ~/.ssh/cert StrictHostKeyChecking no UserKnownHostsFile /dev/null …
0
votes
1 answer

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 accepting TCP/IP connections on port 5433? I have a…
0
votes
1 answer

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 website 192.168.0.2 using ssh tunnel on my laptop. Regards
0
votes
3 answers

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 service host. So i need to do something like ssh…
gesus
  • 219
  • 1
  • 2
  • 6
0
votes
1 answer

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 | +---------------+ | VNC client | | OpenSSH Server…
Stewart
  • 341
  • 1
  • 3
  • 12
0
votes
1 answer

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 app would see the connection as coming from the…
wisha
  • 101
0
votes
0 answers

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 production database has the following version: >…
Carol.Kar
  • 117
  • 6
0
votes
1 answer

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://git@git.mycompany.com:8022/path/to/repo.git I…
foglerit
  • 101
  • 1
0
votes
1 answer

Linux: NAT punchback for VPN/SSH services

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 / mobile devices which all have dynamic &…
BarsMonster
  • 724
  • 4
  • 12
  • 26