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
4
votes
1 answer

SSH Remote forward with ssh config file not Listening to all Addresses (Listening to local host only)

I'm trying to setup a Remote Forward from my AMAZON instance to my local machine (dev) My problem is that when I connect to amazon server and when I run the netstat -antp command it shows me that I have a socket listening on the 127.0.0.1:8080 only…
M. Gara
  • 163
  • 1
  • 2
  • 10
4
votes
1 answer

SSH config ProxyCommand asks for public key

I'm trying to connect via a gateway to an EC2 instance. If I connect to gateway local> ssh gateway Then I can connect to EC2 without a password gateway> ssh ec2 # works However, trying to connect through the proxy seems to require the indentity…
Matt McCormick
  • 273
  • 2
  • 4
  • 10
4
votes
1 answer

Connection error in bitvise ssh client

Iam able to connect to ssh server host on openshift using putty but while using the same setting in bitvise ssh client i get the folowing error - 01:47:18.424 Connecton failed. getaddrinfo() failed. Windows error 11003: A …
warl0ck
  • 141
  • 1
  • 1
  • 6
4
votes
3 answers

SSH Connection through a Reverse (Remote) SSH Tunnel

This is the setup I have : a Linux box A inside a LAN behind a firewall. a Linux server with a fixed IP address that is accessible from the internet. I want to be able to connect to the Linux box that is behind a firewall from afar via ssh. I have…
Ethan
  • 43
  • 1
  • 3
4
votes
5 answers

SSH remote access vpn tunnel

I have two machines both running CentOS linux, one is public facing machine with a real ip address (foo). The other is at a client's site behind a very restrictive firewall and with no real ip and no possibility of natting or opening an port to it…
Jona
  • 746
  • 1
  • 9
  • 17
4
votes
2 answers

Tunneling cassandra via ssh gives me a connection closed error

I have a server with two network interfaces. Cassandra is listening on a dedicated internal database network on eth1 (not accessable from outside). So I do my tunnel like this: ssh -f -N -L9161:192.XXX.XXX.200:9160 user@192.YYY.YYY.200 -P…
KIC
  • 145
  • 1
  • 6
4
votes
2 answers

Can I limit my SSH Tunneling Speed?

So, I'm using my ssh tunneling to download some content which is blocked by my office. But, I don't want the admin to notice it, therefore I want to limit the connection to, eg: 20KB/s. How can I do that? FYI: -I'm using DownThemAll to download…
ariefbayu
  • 229
  • 2
  • 5
  • 13
4
votes
2 answers

SSH port tunnel disconnects with "select: Invalid argument"

I am tunnelling into a remote server to access a private api. I am using the following command (by typing it into Terminal) to forward a single port: ssh -L $local_port:$host:$port -v. Tried many different local ports (9000, 9001 etc). I can use the…
Johnny Everson
  • 115
  • 1
  • 7
4
votes
1 answer

Forwarding VPN via reverse SSH tunnel

I have a server that reverse ssh tunnels to a secondary server. The secondary server then acts as a "bridge" to the internal server (the external server's IP address is what I connect to). This works fine for most services (files, ssh, etc.) but…
jstm88
  • 757
  • 2
  • 9
  • 21
4
votes
2 answers

Persistent reverse SSH tunnels

We have a number of servers (currently in the 10s, soon the low 100s) deployed to varying institutions with varying network layouts. To make sure that we can access the servers at will we have them setting up reverse SSH tunnels back to a server we…
Jeremy Logan
  • 255
  • 3
  • 12
4
votes
2 answers

Create an SSH tunnel with authentication keys - Syntax

I have to create an SSH tunnel to connect a deployment server to an VPN: DeploymentServer --> Gateway --> PrivateServer Each machine using a key, I tried the following command: myMachine $ ssh -i GATEWAY_KEY.pem -N -L…
Guilhem Soulas
  • 251
  • 2
  • 4
  • 12
4
votes
1 answer

Virtmanager connection via custom SSH command?

I'd like to use virt-manager to manage my libvirt/kvm virtual machines running on a remote host, but the method I use to ssh into that host it a bit complicated. I need to use custom ports along with agent forwarding with multiple hops. For…
Dave
  • 607
  • 1
  • 9
  • 18
4
votes
1 answer

SSH tunnel to a postgres database

Currently I develop on a remote dev server. I SSH into the dev server (using SSH keys) as ssh -p 22222 user@devbox.com Then from the dev server, I connect to the database over the local network psql -U postgres -h psqldb -d my_database where…
hobbes3
  • 615
  • 2
  • 10
  • 23
4
votes
0 answers

TCP tunning for ssh port forwarding

I am using an ubuntu openssh server to allow users to connect to and do dynamic port forwarding. the performance is good until about 100 users are connected. beyond that the performance is dropped too much. actually establishing new tcp connections…
4
votes
1 answer

Administer postgres from PGAdmin on remote mac using ssh tunnel

I've got PostgreSQL installed on a Ubuntu server and I'm trying to connect to that server using PGAdmin on a remote macbook. I've created an ssh tunnel - macbook:~postgres$ ssh -L 5423:localhost:5432 postgres@mydomain.com And I can connect using…
Aidan Ewen
  • 291
  • 1
  • 4
  • 11