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

learn more… | top users | synonyms

0
votes
1answer
13 views

Can I establish an SSH tunnel to elasticbeanstalk instance?

It is possible to SSH to elasticbeanstalk with eb ssh <instance>, but it doesn't seem to be possible to create a tunnel with this executable. How can I do it, if at all?
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: http://simplygenius.com/...
1
vote
1answer
10k 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: ...
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 ...
8
votes
1answer
8k views

reverse-proxy web access on a server where only SSH is allowed

Once in a while i have to connect to a server where access is highly restricted. Only inbound SSH is allowed by the DMZ firewall.Outbound HTTP connections are blocked. I'm looking for a good way to ...
0
votes
1answer
22 views

How can I use port tunneling to connect to a private database instance through a network bastion?

I have a network bastion which is publicly accessible at example.compute-1.amazonaws.com and a private postgres database instance at postgres.example.us-east-1.rds.amazonaws.com:5432 I can ssh into ...
0
votes
0answers
10 views

X11 Forwarding using Attachmate Reflection

I've been using Putty for my SSH connections. I've been able to use XMing and X11 forwarding without a problem. I have to switch to Attachmate Reflection for work. I connect to the same machine and ...
2
votes
2answers
28 views

SSH tunnel for 3 hops and copying files

I've managed to do ssh tunnel just for two hops ssh -L 1234:serverB:22 user@serverA scp -P 1234 user@localhost:/file /file Now I need to go from localhost -> serverA - >serverB ->serverC And to ...
-1
votes
0answers
17 views

What is reliable way to set up microservice architecture with IoT devices?

There is many ETH connected devices, behind many different NATs. I want to be able to send and receive messages: Server <> IoT devices using REST-like services. My current solution is to have SSH ...
0
votes
1answer
27 views

How to allow reverse ssh-tunnel connection to my host on demand?

I've set up a reverse ssh-tunnel (no autossh is used right now, but I might be using it)from remote laptop to my pc, but I don't trust much the remote host, as there might be different people using it ...
1
vote
0answers
52 views

Bash: Running a background service for the duration of another process

I am running some automated scripts. For some tasks I sometimes need a ephemral background "service" to run. For example, I want to setup an ssh tunnel, run a test, and then have the tunnel removed. ...
1
vote
2answers
705 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
votes
1answer
40 views

Windows Server connection using putty

Iam having hard time connecting to an Azure Windows Server 2012 from my institution (University). The goal is to connect to the SQL Server that runs on this Windows server This is the strange ...
0
votes
1answer
35 views

query Redshift over multiple SSH hops

I'd like to query an AWS Redshift cluster from an IDE running on my laptop (IntelliJ). This cluster is only directly accessible from an EC2 instance in our VPC. That EC2 instance isn't directly ...
0
votes
1answer
72 views

php unable to connect to MySQL via SSH tunnel

I have executed both commands via SSH with no error and than when I try to connect to the MySQL server via SSH tunnel I get no results even if I do a simple query like select * from table. I get no ...
0
votes
1answer
110 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 ...
5
votes
3answers
8k views

MySQL access denied error when connecting via SSH tunnel

For months I've been connecting to the MySQL instance running on our local test server through an SSH tunnel without any issues. All of sudden though, with no changes I can think of, the server has ...
20
votes
9answers
17k views

How to set up disk cloning with dd, netcat and ssh tunnel?

I would like to copy stuff in bulk (reimage disk using dd) with netcat from host A to B via ssh encrypted channel on Linux. What commands should I type on both ends?
0
votes
1answer
43 views

Is there any way to log entered password from ssh?

My server is under attack and some one try to run brute force attack on my ssh port, I know that I can block the IPs which are illegal,with iptables,fail2ban, ... but I want to know which password ...
1
vote
0answers
41 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 C:\...
0
votes
0answers
53 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 net.inet.ip....
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 9999:...
0
votes
0answers
18 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 ...
4
votes
1answer
97 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
302 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
39 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 ...
0
votes
1answer
65 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
39 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: srv-08....
0
votes
2answers
61 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
28 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
19k 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
69 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
112 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
140 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
92 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
80 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
4k 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
892 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
30 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
75 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 my....
0
votes
1answer
84 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
22 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
198 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
297 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 ...
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
160 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, ...