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

learn more… | top users | synonyms

0
votes
0answers
13 views

OpenSSH Windows Error

I want to connect with putty from one machine_1 to another Windows machine machine_2. So I install a OpenSSH Server on machine_2. I generate 2 a key pair with puttygen. I paste the public key in ...
0
votes
0answers
18 views

Remote port forwarding via ssh tunnel fails

I am trying to do some remote port forwarding via a ssh tunnel on my NAS (NAS4Free running FreeBSD), which is behind a firewall. I have added gateway_enable="YES" in /etc/rc.conf and also ...
4
votes
3answers
2k views

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

Use VPN from dev pc

I have a server (EC2 server with say IP: 54.548.230.25) that has a connection to a remote server (IP example: 68.25.154.21) via VPN running a web service on port 8520. However, I need to reach the ...
1
vote
1answer
1k views

Connecting jconsole using SOCKS to Amazon EC2

I'm trying to use jconsole to view stats on an EC2 instance by using a socks proxy created by SSH. I've tried the various scripts mentioned in the links below but to no avail: ...
1
vote
2answers
1k views

how to do ssh tunneling to oracle server without ssh server inside?

Almost all of the google result for my problem has different case about tunneling connection to my oracle server, they usually has ssh server/client within the oracle server but i have another case ...
4
votes
1answer
46 views

reliable systemd service for autossh

I try to create a reliable systemd service for autossh. The service works, but if the host-keys changes, the service is in state ok (running). I want it to be in state "failed" if the tunnel does ...
0
votes
2answers
266 views

squid3 FAIL with cache_peer round-robin on 127.0.0.1 different port

I have 3 tunnels end to a Debian running squid3 (ports 9001 to 9003). At start of each tunnel runs a proxy. I try to load-balance those proxies this way: http_access allow all http_port 4128 ...
0
votes
2answers
28 views

SSH Tunnel to Memcached not working

I have created a SSH Tunnel to my memcached server as follows: ssh -f -N user@56.55.55.56 -L 11211:127.0.0.1:11211 When i do netstat on my machine i get the following: So far looks good. tcp ...
-1
votes
0answers
6 views

Bypass DS-Lite via reverse SSH Tunnel [migrated]

My ISP unfortunately only provides a DS-Lite connection (no IPv4 address, only a IPv6 address) which makes it impossible to create IPv4 port forwardings to access devices in my local network. But I ...
0
votes
1answer
31 views

How to configure TightVNC to accept connections from localhost only

I just implemented tunneling TightVNC + OpenSSH for MS Windows successfully. The last thing I have to configure is to deny any remote connections to TightVNC Server and allow local connections ...
2
votes
0answers
18 views

AutoSSH occasionally running into: “channel 2: open failed: administratively prohibited: open failed” until tunnel is restarted

I'm running an autossh script using upstart for ssh tunneling / port forwarding to my postgresql database. It that looks like this: # Remote server role: database-master # Remote hostname: ...
0
votes
2answers
46 views

How to ssh to my Ubuntu from outside the local network?

Suppose that a Linux server A is in a local network with IP 192.168.0.90, and I have another Linux server B outside this local network, with IP 203.107.90.80. I want to get access to server A via ssh ...
0
votes
0answers
25 views

SSH Server Connection over VPN

I connect my VPS over SSH terminal via ssh keys stored in my computer, password login is disabled. But sometimes I need to surf web behind VPN service which changes public IP for my home computer. ...
9
votes
1answer
17k views

how to connect to mongodb server via ssh tunnel

It was easy for me to connect to my remote mysql server on AWS using a sequelpro, however I'm struggling with doing the same thing with mongodb. I tried setting up an ssh tunnel via command line ...
0
votes
1answer
31 views

How to Chain Proxies With Auth (Proxychain?)

I have my Kali local machine (A). I can SSH into another server (B) and use the proxy settings in Iceweasel or use proxychains to visit 10.2.x.x addresses. However I can not access a machine (C) on a ...
0
votes
1answer
68 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 ...
2
votes
1answer
73 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
46 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 ...
7
votes
1answer
6k views

Can I configure VSFTPD to listen only to localhost?

I have a legacy app that needs FTP and cannot do SFTP. My solution is: put an FTP server in place using VSFTPD configure the firewall to accept port 21 connections only from localhost Set up an SSH ...
0
votes
2answers
64 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 ...
2
votes
0answers
3k views

(reverse-) ssh connection “time out during banner exchange”

I have set up a few 100 embedded boxes to contact HQ by opening up reverse ssh tunnels, each under a new port. This is mostly working fine, but today I encountered a problem with using the tunnel ...
-1
votes
2answers
849 views

Autossh error with upstart script: ssh exited prematurely with status 0 [closed]

I have set up the following upstart script: # autossh description "autossh connections" start on started dbus stop on (runlevel [06] or stopped dbus) respawn respawn limit 5 60 # respawn max 5 ...
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 ...
-1
votes
2answers
74 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 ...
0
votes
1answer
56 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 ...
0
votes
1answer
21 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
votes
1answer
172 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. ...
1
vote
1answer
217 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 ...
1
vote
1answer
9k views

how to solve the “open failed: administratively prohibited: open failed” when using a SSH tunnel proxy

I've been using SSH tunnel for a while on Windows (using Putty). On Windows with putty, it is always fine, but on mac or cygwin, it sometimes prompts the warning message: open failed: ...
0
votes
6answers
4k views

Total newb having SSH tunnel and remote MySQL access problems [closed]

I don't often work with linux or need to SSH tunnel into remote MySQL databases, so pardon my ignorance. I'm using Windows 7 and am needing to connect to a remote MySQL instance on a Linux server. ...
7
votes
2answers
6k views

Can I use an SSH tunnel to access a web server that's listening on a different IP/Port on the same server?

I've got a web server that isn't quite ready for general availability but I'd still like to test some things remotely. Can I leverage an SSH tunnel to connect to the server and then use the tunnel to ...
1
vote
3answers
1k views

reverse ssh tunnel from server to laptop

Question I would like to know how to tunnel requests made on a server (debian) to port 80 on my laptop using ssh tunneling. Problem I can open up a tunnel with the following command that does not ...
2
votes
1answer
111 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
137 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 ...
2
votes
0answers
35 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
1answer
1k 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
31 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
95 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
73 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 ...
1
vote
1answer
506 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
387 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
72 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
156 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) ...
1
vote
1answer
214 views

SSH socks proxy reverse connection Connection denied

So I wrote a java app that connects to a server in a reverse way (-R) and creates a ssh server where it is executed so the server can execute commands in the client that executed my app. That part ...
0
votes
0answers
155 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
27 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 ...
5
votes
3answers
2k views

Why does logging out of an SSH session hang when using port-forwarding?

I use dynamic SSH port-forwarding (-D) and normal SSH port-forwarding (-L or -R) for many different things, including adding a layer of encryption to my wireless web traffic. The command I use ...
2
votes
2answers
739 views

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 ...
1
vote
1answer
78 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 ...