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

learn more… | top users | synonyms

1
vote
0answers
32 views

SSH alternative for a long range/high latency connection [migrated]

I'm about to set-up a raspberrypi in a remote location (300+km to me). It will connect via GSM since there's no landline on 3G/4G. I need a way to "ssh" inside the pi to manage some stuff. Since GSM ...
0
votes
1answer
24 views

Connecting to an AWS RDS behind a NAT with an SSH tunnel

I've set up a MYSQL RDS on AWS, in a private VPC behind a NAT. With Workbench, I can connect successfully from a remote client into the RDS no problems - so all of the RDS, the NAT and the security ...
1
vote
1answer
29 views

Connection to postgresql hangs over SSH tunnel on OSX

Trying to connect to a remote PG server on OSX but it keeps timing out. First, I set up the tunnel: ssh -L 5433:serverip:5432 user@serverip Then in a separate terminal I attempt to connect to PG: ...
1
vote
1answer
13 views

Can't get SSH ProxyCommand to work (ssh_exchange_identification: Connection closed by remote host)

I'm unsuccessfully trying to use SSH ProxyCommand to connect to a server via a jump box. My config is below, I'm running this command: ssh 10.0.2.54 -F ssh.config Host x.x.x.x User ...
0
votes
2answers
52 views

Tunnelling through an IP alias

I have a server machine with a dedicated IP and several IP aliases. It has a single network interface and on it there are multiple IPs "attached". So let's say IP1 is the main ip but I also have IP2 ...
0
votes
0answers
28 views

How to setup a background ssh tunnel which could quit automatically with terminal/session? [migrated]

What I want is like following: I could setup a ssh tunnel at background on a Linux machine(Actually, I'd like to setup it in my .bashrc) I could run process using this tunnel as any user on this ...
-1
votes
2answers
68 views

set up secure connection over SSH [closed]

I'm setting up a server application which requires to establish a secure connection over SSH2, e.g. a client must open SSH2 connection to the server to reach specific application: % ssh -s -p5000 ...
3
votes
1answer
29 views

Connect server A to database on server B and forward remote database port on server A

Edited: I'm quite new to all this admin stuff though! So: Whats the best way to connect a port on server A to the database on server B. The reason i want to do this: I want to connect server A to a ...
0
votes
1answer
34 views

Using SSH to tunnel over two hops, the last of which is connected through a reverse ssh tunnel

I would like to use OpenSSH to allow port forwarding over two hops, the last hop being connected through a reverse tunnel. Here is my current setup: Server B is running sshd on port 10000. Server ...
-1
votes
1answer
118 views

SSH connecting on port 22 but times out on 443 [closed]

I'm trying to connect to an ssh sever running on cygwin on my home computer through putty on my laptop, this works fine both inside my network and outside on port 22 but on port 443 it times out. ...
0
votes
1answer
16 views

Connect to mongodb through ssh

I'm not sure if it's related to this one, but I have a similar problem. The problem is unless I have port 27017 opened, Robomongo fails to connect even with "ssh tunnel" option. Port, address and ...
1
vote
1answer
155 views

Reach server via ssh tunnel and nginx proxy

I'm new to nginx. I've inherited a fully functional and configured Ubuntu server with nginx and would like to tune it additionally to support a somewhat weird configuration, described below. Basic ...
2
votes
1answer
57 views

ssh: ProxyCommand forward host lookup fails

I am trying to do an ssh multihop from my local machine to a server called cluster, using a server called merlot in-between. As per http://sshmenu.sourceforge.net/articles/transparent-mulithop.html, ...
2
votes
0answers
32 views

SSH VPN tunneling

I am testing some basics of SSH VPNs on Layer 2 like this: ssh -w 1:1 -o Tunnel=ethernet hostname That works fine, but is there a way to tunnel multiple VLANs over such a SSH Tunnel? I know i could ...
1
vote
0answers
29 views

why ssh not route outgoing packages (pptp)?

I have VPS #1 that pptpd and sshuttle installed on it and VPS #2 that have ssh access to it I need to rout trafic from VPS#1 to VPS#2 (by tunnel because pptp not available to vps#2) for users that use ...
0
votes
3answers
63 views

Daemon for N autossh tunnels

I use autossh to create a persistent tunnel from localhost to remotehost. Starting autossh manually works fine, but if localhost reboots, the tunnel is gone. That's no surprise. How to create a ...
1
vote
1answer
48 views

Limiting SSH users in LDAP to only one command on an SSH bastion

I have a private network of Centos 7 servers. Each of the servers can only be reached via an SSH bastion. Furthermore, all of these servers use SSSD to authenticate SSH users' keys against an LDAP ...
2
votes
0answers
93 views

How to check if ssh tunnel is alive and externаl ip in one command? [closed]

I'm connecting with phpsеclib like that: <?php include('Net/SSH2.php'); $ssh = new Net_SSH2('www.domain.tld'); if (!$ssh->login('username', 'password')) { exit('Login Failed'); } echo ...
1
vote
1answer
227 views

netcat / named pipe proxy over ssh

I am used to forwarding a remote service port on localhost using ssh like: ssh -L 2181:localhost:2182 user@server (forward remote host port 2182 to local port 2181) now, from the machine I ssh to, I ...
1
vote
1answer
271 views

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 ...
0
votes
2answers
63 views

routing external IP to ssh tunnel

I have a need to catch all packets going to an external IP/Port redirected to an ssh tunnel. Can't use VPN, it as to go via ssh tunnel. This will be citrix redirection I have an iptables rule that ...
1
vote
2answers
93 views

Sharing SSH port tunnel with local network

I've successfully created a SSH tunnel to our cloud postgresql server on a local linux server, with this command: ssh -N -f -L 5431:localhost:xxxx mycloudserver.com (where xxxx is remote port) ...
0
votes
0answers
73 views

Autossh causes CLOSE_WAIT after ~8min

I have Python app, which creates a socket, connects to the port and starts infinitely reading from the socket. Works great over the ssh tunnel: ssh -qnNT -p 2020 -i ${SSH_KEY} \ -o ...
0
votes
1answer
24 views

Open SSH forward ports from desktop (not in a terminal)

For reasons I won't go into I often have to set up multiple SSH tunnels to a remote box -- often enough that it would be nice to be able to initiate it with a single command from a desktop launcher (I ...
1
vote
1answer
57 views

ssh bind address through multiple hosts

I'm trying to ssh through multiple hosts which works with no problems like so: ssh -t -t user1@host1 ssh -t -t -p 222 user2@host2 Now I would like to use local host for access to a third host and I ...
1
vote
2answers
413 views

Failed to start stunnel4 on Ubuntu 15.04

I get the following error starting stunnel4 service on Ubuntu 15.04: root@scw-d91ec7:~# service stunnel4 start Job for stunnel4.service failed. See "systemctl status stunnel4.service" and "journalctl ...
0
votes
0answers
22 views

How to communicate effectively over a jumphost?

My company uses a jumphost to get into a datacenter. For various reasons I want to use applications that communicate from my localhost, to ports on a machine or set of machines in that datacenter. ...
1
vote
1answer
995 views

SSH tunnel to Docker container

Goal: connect locally to a remote repl (e.g. via lein repl :connect). Locally, this is easy: Run server (it starts an embedded nrepl server on port 8081) Run lein repl :connect 8081 & voila! ...
0
votes
0answers
145 views

Connection to MS SQL Server instance through SSH SOCKS proxy fails

I use a local ssh socks proxy (localhost:7070) on my Linux Laptop to connect to my company's intranet over my company's Windows+cygwin laptop, which has intranet access: Linux --(ssh -N -D 7070 -p ...
1
vote
1answer
198 views

Jmeter distributed testing over ssh tunnel

While configuring jmeter distributed testing i faced a problem of remote connection to servers which are behind NAT. Node with jmeter client has external ip, all servers are in different LANs behind ...
1
vote
1answer
629 views

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() ...
1
vote
0answers
59 views

Is it possible to reverse ssh to a system behind a router via a third system if port forwarding is disabled on the middle system?

I want to access a workstation in my lab from my laptop in my hostel room. But I can't directly ssh to the machine as both my laptop (in my hostel) and the worstation are behind two different routers ...
1
vote
1answer
143 views

Forward connections from docker container on specific port to local interface on host

I am attempting to run services in containers within a cloud provider. I would like the containerised applications to authenticate with an on-premises LDAP server, which is (currently) available via ...
0
votes
0answers
91 views

Weak points of ssh tunnel and x11 server, hack investigation

So, today I've been hacked. It's very puzzling to me how it was done, so I'm looking for experienced people to show weak points in design of my systems. I have two servers. One is VPS with ...
1
vote
2answers
149 views

NFS share not connecting over ssh tunnel on Mac OsX, it works on all other devices

I've been searching for a while now to try and find a solution but I finally gave up. I have a ubuntu server running an nfs share. I set it up so that you have to connect to it using ssh. which is ...
0
votes
2answers
169 views

Cannot connect to MySQL on EC2 over tunnel

For security reasons we want to connect to MySQL running on EC2 over ssh. We have other servers where we do this with no issues, but for some reason on EC2 it's not working. The instance is running ...
-1
votes
1answer
267 views

SSH tunnel to MySQL running on FreeBSD (Heidi SQL)

I'm trying to use a SSH tunnel to access a MySQL-server running on a FreeBSD 10.1 server. These attempts are done with Heidi SQL (http://www.heidisql.com/). The SSH daemon on the FreeBSD server does ...
0
votes
1answer
34 views

SSH tunnel through two gateway servers

I am aware of questions already asked for a tunnel through one gateway server. However couldn't find anything on multiple gateway servers. How do I configure a ~/.ssh/config file which will allow me ...
-1
votes
1answer
222 views

Setup Tunnel via ssh and use it's Internet for VPN clients

I have two VPS centos 6.6 x64 with Public IP addresses example:1.1.1.1 and 2.2.2.2 VPS with 1.1.1.1 is a VPN server I Need to connect 1.1.1.1 via ssh to 2.2.2.2 so My VPN clients on 1.1.1.1 can Have ...
7
votes
1answer
492 views

Copying SSH IDs between servers

Is it good practice to copy SSH IDs a la ssh-copy-id between remote servers in production, so that they can perform various SSH tasks with one another easier? In particular, I'm setting up SSH ...
0
votes
1answer
53 views

Port forwarding between 3 machines

I have 3 machines that are connected as a chain, A,B,C. A-->B-->C A is my machine, B is server, and C is other machine with some services and web server on it. Because of some issues I need ...
0
votes
2answers
91 views

ssh connection from linux via windows to server

I have a linux computer and a windows computer which are connected to different networks. I would like to connect from my linux machine to a remote ssh server. From my linux computer I can access ...
0
votes
1answer
99 views

How to reconnect to MySQL through SSH tunnel after connection drops?

I use to connect to MySQL server (Debian Linux) through a SSH tunnel. Yesterday I issued a complex query, that usually takes 30 min or so to complete. After few minutes: plink.exe: FATAL ERROR: ...
0
votes
0answers
54 views

SSH tunnel is up, but cannot connect to database

I am working on a project where we are using an SSH Tunnel with port forwarding. Our server contains a website which references a database on our customers server. We have established an SSH ...
1
vote
1answer
74 views

SSH Tunnel issues

Our setup is as follows; - 2 tomcat servers hosting sites - 1 load balancer - SSH connection to client server which contains database This approach has worked fine with the exception of one client ...
0
votes
0answers
60 views

SSH Connect to remote computer to query database on local server

I'm having real difficulty with an SSH tunnel to a customer server. This is needed as we are developing a site on their behalf, hosted on our server but referencing the database on their server. The ...
-1
votes
1answer
43 views

What does -ssh mean in SSH Tunnel

A previous employee at the company i work for had set up an SSH Tunnel but I am having some difficulty with it. echo y | plink.exe -ssh -R 24011:localhost:1433 connect@testsite1.fern.io My ...
0
votes
1answer
175 views

SSH Tunnel not working

I have a number of SSH tunnels set up between our company's server (hosts website) and our customer's servers (hosts database). For all sites but one the connection is relatively stable however one ...
0
votes
1answer
76 views

networking port forwarding to ssh tunnel

I have a quick question regarding Linux port forwarding to an ssh tunnel. A ssh (reverse) tunnel connected to a web service on one machine is terminated on one machine, such that the service is ...
1
vote
0answers
35 views

SSH Tunnel connection issues

I am having difficulty with an SSH Tunnel which keeps dropping. i have tried with a variety of ports and have checked the event viewer to see if there's any information there but as yet have found ...