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.

864 questions
60
votes
8 answers

Can I create SSH to tunnel HTTP through server like it was proxy?

Say I have a server and client. I need to create connection from client to a website through server like it was proxy. Is it possible to do this using a SSH tunel, or do I have to install some proxy service to the server?
Jakub Arnold
  • 1,854
59
votes
7 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
48
votes
6 answers

ssh tunneling only access

Is it possible to configure ssh (on linux) to allow access for tunneling only? Ie user can setup tunnels but cannot get a shell/access files?
Second
  • 713
45
votes
6 answers

Forward SSH through SSH tunnel

My situation : Me(localhost) -> Server A(ip:100.100.100.100) =>(server B(ip:192.168.25.100),server....) i'm able to SSH into server since it has a true ip if i then want to connect to server b, i would ssh server b with it's…
tom91136
  • 553
40
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,237
37
votes
5 answers

SSH remote port forwarding failed

Follow-Up: It looks like the rapid series of disconnects coinciding with a few months of running each server is probably coincidental and just served to reveal the actual problem. The reason it failed to reconnect is almost certainly due to the…
jstm88
  • 767
  • 2
  • 9
  • 21
35
votes
2 answers

How to add local forward setting to my ssh config file?

I currently can do this: ssh 12.34.56.78 -L 8888:localhost:8000 And I can then open my local browser to localhost:8888 and see the app running in my server at 12.34.56.78:8000. I want to avoid having to type in that forward command and instead place…
andrux
  • 455
32
votes
3 answers

how to tunnel Windows Remote Desktop through ssh using a linux box?

I have two physical servers in my home network, linux (192.168.8.x) and windows server 2008 (192.168.8.y). The linux server ist accessible from outside by ssh on a non-standard port (say 23008). How do I establish a permanent RDP tunnel through ssh…
elsni
  • 475
29
votes
2 answers

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 like so: ssh -fN -l root -i path/to/id_rsa -L…
abbood
  • 1,147
28
votes
9 answers

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?
Evgeny
  • 599
25
votes
2 answers

How can I close SSH tunnel gracefully?

I have open tunnel with ssh -2 -N -L 5001:localhost:1019 eonil@test.local The tunnel is working good, but I have to Ctrl+C or Ctrl+D to force quit the tunnel. How can I close the tunnel gracefully?
Eonil
  • 11,009
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
22
votes
3 answers

How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. So, there is a NAT server in public subnet which forward all outbound traffic from private subnet to outer…
22
votes
8 answers

How to configure a shortcut for an SSH connection through a SSH tunnel

My company production servers (FOO, BAR...) are located behind two gateway servers (A, B). In order to connect to server FOO, I have to open a ssh connection with server A or B with my username JOHNDOE, then from A (or B) I can access any production…
22
votes
2 answers

strange output on ssh tunneling: output failed; connect failed: Connection timed out;

I use ssh user@xx.yy.zz.41 -p 1234 -D 9898 command for tunneling, and I set firefox socks5 ip to 127.0.0.1 and its port to 9898. It works successfully ,but in terminal I have error in output: channel 39: open failed: connect failed: Connection…
1
2 3
57 58