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.

855 questions
45
votes
6 answers

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: administratively prohibited: open failed
37
votes
5 answers

What is the difference between Local/Remote/Dynamic SSH tunneling?

In Putty, there are three tunneling options: Can someone explain what is the difference between them?
LanceBaynes
  • 3,127
24
votes
2 answers

with SSH only: reverse tunnel web access via ssh SOCKS proxy

Once in a while i have to connect to a server where access is highly restricted. Only inbound SSH via VPN is allowed by the DMZ firewall.Outbound HTTP connections are blocked. I'm looking for an easy way to tunnel web access through my SSH session,…
Kaii
  • 755
  • 1
  • 6
  • 17
10
votes
5 answers

ssh tunnel error "ssh_exchange_identification: Connection closed by remote host"

I'm trying to use an ssh tunnel from my office machine to my home machine, and get an error when I try to use it. What I'm doing is starting one shell like so: ssh -gL 12345:my.home.domain:22 my.home.domain This is giving me a proper shell, no…
9
votes
2 answers

How do I stop my ssh tunnel when it is in the background?

I'm using this ssh command: ssh -fnN -L $LOCALPORT:$REMOTEHOST:$REMOTEPORT $HOST This creates my ssh connection in the background and forwards that port to the remote host through another host. This is great, and allows me to use my service behind a…
8
votes
1 answer

access an http server as localhost from an external pc over ssh

I have an application server at work that can accept http request only from localhost. At home I access the server through ssh. Once on the server I can curl http://localhost/test.html I would like to do the same from my web browser at home, i.e. in…
Glasnhost
  • 651
  • 4
  • 11
  • 22
5
votes
3 answers

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:localhost:9999 user@remotehost In order to keep this…
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
3
votes
3 answers

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 also to access Apache web server on port 80 of the…
Glasnhost
  • 651
  • 4
  • 11
  • 22
3
votes
1 answer

Access web service behind jump host via ssh tunnel

I have created a web service running on protected server(Centos, 123.123.123.123:8192), we can only login to the web server via SSH from a jump server (say 111.111.111.111). I can login the web server via SSH (first login to jump server, then dump…
coanor
  • 191
  • 1
  • 2
  • 6
3
votes
3 answers

Connection fails in SSH tunneling

I have a web server running on port 8000 on remotehost. I set up a tunnel from localhost: ssh -L 8888:localhost:8000 remotehost However when I try to request localhost:8888 I get: channel 3: open failed: connect failed: Connection…
Oleg
  • 61
3
votes
1 answer

Is it possible to have multiple users SSH tunnel to a same local port?

I have a web-app running on a particular port on a Linux EC2 instance. Only SSH traffic is allowed to that server. Can multiple clients use SSH tunnels to that server to load a webpage from that port?
raphael
  • 169
2
votes
1 answer

SSH: Local Server has public IP; Remote doesn't

Local machine has a public IP. The remote machine is running at a clients site. I have full access to this machine, but it does not have a public IP. At the moment we're using TeamViewer to remotely access this machine, but we'd rather use an x11vnc…
nishantjr
  • 241
2
votes
1 answer

SSH tunnel created successfully, but telnet test still fails

I am on a RHEL 5 system, connecting to another RHEL 5 system. I created a SSH tunnel with the following command: ssh -2 -4 -f -x -N -L 1527:remote_host:1527 user@remote_host (remote_host is the same server) I type the password, and I'm immediately…
2
votes
1 answer

SSH tunneling over port 80, but only on a single subdomain?

I'm running lighttpd and openssh on an old box. Could it be configured to have lighttpd handle web traffic through www.example.com:80, but have ssh traffic through ssh.example.com:80? Due to irrelevant circumstances, I find myself at times stuck…
TreyK
  • 205
1
2 3