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
5
votes
2 answers

How to Configure Secure Connectivity between Multiple Subnets

I have the following setup 2 x linode vps 1 x lab (physical) running 4 vps My goal is to make it so all nodes act as if they are on the same LAN. This will allow me to alter IPTable rules, to allow only local traffic, versus having to add a new…
Mike Purcell
  • 1,708
  • 7
  • 32
  • 54
5
votes
1 answer

SSH tunnel speed is very slow

I have remote server with Ubuntu Linux and I want to establish SSH tunnel with this server from Windows machine using PuTTY(plink). I have to use this method for getting access to some service on this server, because firewall is blocking all ports…
John Green
  • 105
  • 1
  • 2
  • 9
5
votes
3 answers

How to restrict ssh tunnel authority to a certain port?

I have a program running on remote server port 9999. As it don't support any kind of encryption and auth, I'm using the ssh tunnel to access to it. This is the command I am using: ssh -L 9999:localhost:9999 user@remotehost In order to keep this…
user1914683
  • 153
  • 1
  • 3
5
votes
1 answer

How to use compression option for ssh with the ProxyCommand?

I want to establish a ssh tunnel for transferring data from my computer to a remote machine through a gateway machine. I want to copy large amount of data, thus I use blowfish for encryption and enable the compression. Which of the following…
Skarab
  • 327
  • 3
  • 11
5
votes
2 answers

How to link multiple SSH tunnels together in Linux

I have the following situation: A -----|------ B -----|------ Work Work can SSH into B, and A can SSH into B, but apart from that everything is firewalled. What I would like to do is in effect create a SSH tunnel between Work and A so that I can…
yoda230
  • 191
  • 2
  • 7
5
votes
5 answers

autossh not working for two or more tunnels - or is there an alternative?

I am trying to use a SSH server as a gateway to connect to more than one internal servers. Internal in this context means that they are not accessible directly, they got no public IP assigned to them. So the scenario should look like this (example…
Chris
  • 1,185
  • 2
  • 9
  • 18
5
votes
2 answers

SMB proxy: Connect to SMB server through SSH tunnel between two other hosts

I want localhost to access my company's SMB shares. These are located on a Win7 peer. This peer is running a virtual machine with Debian which itself is running an ssh daemon. I can easily create an ssh tunnel from localhost to the VM but couldn't…
pong
  • 173
  • 1
  • 3
  • 8
5
votes
4 answers

SSH tunnel as proxy - no data returned

I'm trying to set up an SSH tunnel as a web proxy for use when I'm at public locations. I already have a remote server to use, and I've also had this working in the past using this same server. However now when I try it, I successfully make the SSH…
Dan
  • 203
  • 3
  • 12
5
votes
2 answers

ssh port forwarding is not available (locally) for IP rather localhost only

I have a remote machine at example.com with sshd listening to port 1234 and a web service at port 5678. For some reasons, I want to 'localize' the http requests to that web service. When I execute ssh -L 4321:example.com:5678 root@example.com -p…
Tzury Bar Yochay
  • 727
  • 11
  • 24
5
votes
10 answers

Forward port to another Ip/port

I recently found out that my ISP disables port 135. I have a server and personal computer behind my router. A friend and I are working on a programming project and are running into some sql issues because of this blocked port. For him to be able…
Ryan
5
votes
0 answers

getpeername failed: Bad file descriptor

I run script from an OracleLinux 8.4 VM (with NatNetwork configured on VirtualBox) on my Windows 10 pc, to remote hosts using jump host. My PC can't connect directly to remote hosts, but need to pass by jump host after connect to VPN. This is my…
4
votes
6 answers

How to download a file on a server you've already ssh'ed into?

I know how to use scp or wget to download a file on a remote server to my local machine. However, if I'm already logged into a server with ssh, is there a command that lets me download a file in the pwd on the server onto my local machine? I…
Wilhelm
  • 153
  • 2
  • 6
4
votes
1 answer

Allow SSH Reverse Tunneling (-R), but not Local Forwarding (-L)?

We have a customer with a remote server who wants to restrict times we can access the server (most customers we have on-demand access initiated locally). I'm setting up a script for them so they can just kick it off and it will SSH to our side with…
UtahJarhead
  • 928
  • 7
  • 14
4
votes
0 answers

Match address rule in sshd_config, , difference between localhost, 127.0.0.1 and [::1]

I would like to understand why these three rules in sshd_config behave differently : Match host localhost PasswordAuthentication yes Match address 127.0.0.1 PasswordAuthentication yes Match address ::1 PasswordAuthentication yes Assume…
hello world
  • 123
  • 3
  • 8
4
votes
1 answer

OpenSSH local port binding for a remote host with jumps

I am running OpenSSH_7.6p1 and i have found very convenient the ProxyJump feature (e.g. -J ) Is it possible to bind a port on localhost that is mapped to a remote ssh session accessible with jumps? For example I would like to: ssh -J…