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.

818 questions
47
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,674
  • 10
  • 25
  • 33
42
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
  • 653
  • 1
  • 6
  • 8
39
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
  • 493
  • 1
  • 4
  • 7
35
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
  • 747
  • 2
  • 9
  • 21
35
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
  • 2,907
  • 9
  • 27
  • 31
30
votes
5 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
AGamePlayer
  • 555
  • 1
  • 5
  • 13
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
  • 3
  • 10
  • 17
25
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,087
  • 3
  • 13
  • 21
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
  • 735
  • 1
  • 6
  • 17
23
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
  • 9,689
  • 15
  • 34
  • 53
23
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
  • 335
  • 1
  • 2
  • 7
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…
jasonfungsing
  • 405
  • 2
  • 4
  • 6
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…
Simone Carletti
  • 1,494
  • 3
  • 15
  • 30
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…
Arash Mousavi
  • 658
  • 3
  • 8
  • 21
19
votes
6 answers

If I am using SSH for a SOCKS proxy, do DNS connections go through it?

I am using ssh -D 8080 my server to create a SOCKS proxy. I'm then configuring OS X to use localhost:8080 as a SOCKS proxy. I'm using this to access the internet without being monitored. I'm using Google's DNS servers (8.8.8.8), but how do I make…
Jason Marzst
  • 191
  • 1
  • 1
  • 3
1
2 3
54 55