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

learn more… | top users | synonyms

0
votes
2answers
17 views

HTTP over multi-hop ssh

I have access to a linux server via a multi-hop ssh ssh -L3880:localhost:3880 user@first-hop-server -t ssh -L3880:localhost:3880 user@end-server This is fine for access through ssh. However I want ...
1
vote
4answers
7k views

SSH Tunnel yielding “administratively prohibited: open failed” after a few hours

i have a dynamic OpenSSH tunel running as : ssh -N -D *:1080 user@example.com (OpenSSH_5.3p1 Debian-3, OpenSSL 0.9.8n 24 Mar 2010) which runs perfectly for a few hours, of few days, but begin to ...
0
votes
0answers
17 views

Accessing a workstation behind a firewall [closed]

Situation: I have a workstation using school network, and a laptop. I want to be able to (SSH) access my workstation from my laptop from a different network. Problem: School network blocks all ...
0
votes
0answers
18 views

WARNING: Server requests forwarding for unknown listen_port 0

I am trying to create reverse ssh tunnel between machine A and B. Both machines are windows and using Win32 OpenSSH. Here is what I do. On machine A I have a web app running on port 8080 On machine ...
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/...
2
votes
2answers
11k 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
votes
1answer
15 views

Local Port Forwarding does not work when only port 22 is allowed by Iptables

I'm trying to perfom a Local Port Forwarding using SSH tunneling. Machine 1: the rules of iptables are: Chain INPUT (policy ACCEPT) target prot opt source destination ...
1
vote
2answers
2k 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 ...
0
votes
0answers
17 views

SSH connections via pivot [closed]

I'm searching for way to make next environment: I have a lot of network managed by ssh. I need to install one linux server and every ssh connection to any network device should go via tunnel through ...
0
votes
1answer
16 views

Using SSH tunnel from other host

I set up ssh tunnel from one host (192.168.1.7) like this: ssh -NL 9111:192.168.0.55:9100 user@some.remote.host Now I'd like to use the same tunnel from other host (192.168.1.8) in same private ...
0
votes
0answers
23 views

redhat satellite + rhn_check + ssh bind_address

we want to run the rhn_check on remote machine - 172.23.21.23 (this is redhat linux version 6 ) , we use the ssh -R to Specifies that the given port on the remote machine - 172.23.21.23 is to be ...
0
votes
0answers
12 views

Force traffic through a double-SSH tunnel (SOCKS proxy)

This is going to sound like a n00b question but I can not find any information on this specific task. I know how to set up an SSH tunnel from PuTTY. Let's say there's a private server, 10.10.10.20 ...
4
votes
2answers
1k views

Multiple Reverse SSH Tunnels using Single Port

I am able to accept reverse SSH connections from multiple remote systems on a single server using a port for each connection: Remote A: ssh -fN -R5000:localhost:22 user@server-ip -p22 Remote B: ssh -...
0
votes
1answer
22 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?
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
26 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
16 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
33 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 ...
0
votes
1answer
35 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
89 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
799 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
53 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
71 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
97 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
115 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 ...
6
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
45 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
59 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
65 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
19 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
154 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
322 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
44 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
91 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
46 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
70 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
31 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
20k 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
88 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
136 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
195 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
114 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
87 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
923 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
33 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....