Questions tagged [ssh-tunnel]

An SSH tunnel allows forwarding any traffic over the SSH protocol. This is used to secure the transmission or allow data to be exchanged where network restrictions are in place.

Filter by
Sorted by
Tagged with
6 votes
2 answers
16k views

SSH local port forwarding to a website

I was refreshing my memory today on setting up ssh tunnels and I came across several sources that describe forwarding some local port to a website. For example: https://www.techrepublic.com/article/...
shwoseph's user avatar
  • 369
0 votes
1 answer
7k views

SSH through jump sever using private key (in macbook)

I am trying to do SSH where target server is accessible through jump server only. +-------+ +----------+ +--------------+ | Laptop| <---> | Jumphost | <--> | TargetServer | ...
Dhruv's user avatar
  • 129
0 votes
1 answer
124 views

How to share a folder on a computer behind a router to nodes outside the router?

I want to share a folder on a computer X to several other nodes, say A, B, C, which are on the same LAN. X is behind a router, and the router's IP address might change over the time (it's DHCP-...
leeyee's user avatar
  • 101
0 votes
0 answers
467 views

RDP over SSH with Multiple Hops

I am trying to connect via RDP from a Win-10 workstation through a chain of Linux machines to a remote Windows server. It looks a little like this: Windows-A can putty to Nix-1 Nix-1 can ssh to Nix-2 ...
prosmart's user avatar
1 vote
0 answers
3k views

SSH Tunnel channel open failed (SOCKS)

to bypass geographic filters using my laptop I connect via ssh to my home server. I use this command: ssh -D 8081 [email protected] I have convigured firefox proxy settings with localhost ...
Mex's user avatar
  • 11
2 votes
1 answer
587 views

mysqldump from a local machine, no ssh access to remote

I can ssh to a a server (on a private network, via VPN connection), that has Apache installed on. Internal ip for this server is 192.168.10.98. Web framework on this server can connect to MySQL server ...
Hadi Sharghi's user avatar
1 vote
1 answer
744 views

SSH key across multiple machines with SSH chaining

I would like to be able to ssh across mutiple machines using the -A flag on ssh like: ssh -A user@hostB ssh -A user@hostC This works fine in scenarios where I have SSH keys allowing me to go from my ...
user910861's user avatar
2 votes
0 answers
660 views

Forward network traffic on iPhone through sshuttle tunnel on Mac

Is it possible to forward my network traffic on my iPhone through a sshuttle tunnel on my Mac (on the same WiFi network)?
Benjy Wiener's user avatar
0 votes
1 answer
975 views

Can I use SSH to serve a tunneled resource (HTML page) on a local network?

I have a remote-hosted resource (webapp) that I have to tunnel into a server to access remotely. I can complete the local port forwarding command using -L and then access the remote resource at ...
user3.1415927's user avatar
0 votes
0 answers
316 views

Create SSH web link

I want to create an SSH//: link to be displayed on internal website. I currently SSH to Machine-B via Machine-A, I fisrt SSH to Machine-A then from there I SSH to MAchine-B as I cannot SSH to Machine-...
Sandy's user avatar
  • 4,909
0 votes
1 answer
74 views

Assign a remote server's IP to another server location

How we can assign a remote IP address to another server? I have a VPS in Germany (Mikrotik RouterOS installed) and it has a valid IP address, And in other side in Italy, I have another server which ...
Farhad Sakhaei's user avatar
0 votes
1 answer
234 views

Accessing Linux Box from different Windows Host?

I wanted to access a Linux Box which has on a NAT Network (Virtual Box), the Host OS (Windows having an IP ADDR: 172.16.32.2) and therefore I have done a port forwarding and now able to access the ...
Karthick's user avatar
3 votes
2 answers
2k views

sshuttle connected but www.whatismyip.com still shows my own IP

I am trying to use sshuttle to disguise my IP address, however without success. I use the command sshuttle -r <user>@<remote_server> 0.0.0.0/0 -e "ssh -i /home/felix/.ssh/id_rsa" --...
Felix's user avatar
  • 235
1 vote
1 answer
906 views

Tunneling from Windows 10 to Jupyter running on AWS

I'm trying to access Jupyter notebooks that are installed on AWS and I want to use a windows-10 machine to access it. The jupyter system sits behind a jump host (bastion) on aws. The process works for ...
broccoli's user avatar
0 votes
0 answers
199 views

Port forward through another PC to another server

I'm trying to make a port forward which I never tried before. At work, almost all the ports are closed, apart from RDP and VPN ports. I have app running on port trying to connect to server/computer (...
orishi's user avatar
  • 11
2 votes
0 answers
2k views

Run Vagrant machine on remote server but use as local

I'm not quite sure if I can really do it in that way: Scenario at the moment: My laptop is running a vagrant machine "laravel/homestead" to serve as a webserver. To run it and connect to it - I type ...
aspirinemaga's user avatar
1 vote
1 answer
2k views

Reverse proxy with ssh

I have the following setup: A: my linux laptop at home B: a Windows machine to which I have access via VNC, this PC is behind a restrictive firewall C: a PLC on the same subnet as B I'd like ...
PaperTsar's user avatar
  • 145
0 votes
1 answer
72 views

Exposing resources from my home server

I have a small VPS (Ubuntu 16.04) that I use for hosting of a few personal websites, ownCloud, etc. It's fairly slow and doesn't have a lot of storage. I'd like to offload the ownCloud storage and ...
Mikkel's user avatar
  • 835
1 vote
2 answers
144 views

ssh tunnel interrupted to unlock key - Looking for a single command

I'm trying to create an ssh tunnel to access a remote server(A) that can only be accessed via another server(B). I have a key on my local machine(L) to get to the relay server(B) and another key on ...
Richard J. Acton's user avatar
0 votes
1 answer
2k views

SSH tunnel to connect two servers via a third

I've three servers A , B, and C, plus my localhost. Each server is inside a proper network, and server C should connect to a mysql DB in server A on port 3306 to perform some tests. The scenario is ...
Sim Sca's user avatar
  • 41
1 vote
2 answers
1k views

Can you use SFTP to transfer files "backwards" to client during SSH on host?

While connected to a host computer in Linux (Ubuntu) in command prompt I often find the need to transfer files back to my client computer. I was wondering if Linux offers the capability to move these ...
Ryan David Ward's user avatar
3 votes
0 answers
5k views

UDP over TCP, windows platforms

I have read: UDP traffic through SSH tunnel a number of times, but I don't think it directly answers this question: I am looking to forward UDP traffic (udp Port 8004): https://en.wikipedia.org/wiki/...
Dr.YSG's user avatar
  • 231
1 vote
0 answers
331 views

Using (Open)VPN as proxy only with certain apps

My Firefox connects to the internet using an SSH tunnel through a server. The advantage of this is that I can setup some apps to use the tunnel using their proxy options, while others never do (some ...
Liz's user avatar
  • 33
1 vote
1 answer
4k views

How to connect to a TightVNC-server on Windows via ssh-tunnel?

I need to connect to a particular Windows machine, which is behind firewall, from a remote Unix machine. To this end I installed the TightVNC-server (2.8.8 GPL) on the Windows machine. It is set to ...
Mikhail T.'s user avatar
0 votes
0 answers
525 views

ssh forward to TCP

I have a particular user case: I want that any SSH connection from a specific user or port is redirected to a local TCP port, in a transparent way. So far I try some port forwarding but require the ...
Lesto's user avatar
  • 121
0 votes
0 answers
442 views

SSH tunnel created from remote location but unreliable access from local computer

Two computers: Desktop-Ubuntu; fixed local IP, connected to a modem with port 22 open and forwarding to it. Because of dynamic IP I have a no-ip account. So domain-Desktop-Ubuntu.com forwards ...
dstonek's user avatar
  • 153
1 vote
4 answers
5k views

Can I use other host instead of localhost for Destination Field in SSH Reverse Tunnel Port Forwarding?

I am using Putty to achieve SSH Reverse Tunnel Port Forwarding. Most of the tutorials are teaching me to forward remote port to localhost port. However, may I know is it make sense to input other host ...
mannok's user avatar
  • 113
0 votes
1 answer
106 views

remote SSH connection to a local system

To enable remote SSH to a local system what router configuration is required? Basically, just forward port 22 to a specific IP or MAC address through the router?
Thufir's user avatar
  • 1,630
2 votes
1 answer
5k views

SSH gateway: how to understand ssh -L when remote comes first?

I understand some ssh forwarding basics, but this SuperUser post seems backwards to me. In other words, with 2 hosts, this… ssh -L 0.0.0.0:10022:localhost:22 root@A …seems to allow a connection from ...
mellow-yellow's user avatar
1 vote
1 answer
3k views

Firefox SSH tunnel per tab

I'd like to be able to set up a SSH tunnel to browse the web on each tab. In Chrome there is a plugin called TunnelSwitch which lets you set up multiple proxies and you can toggle through them with a ...
Diego's user avatar
  • 675
5 votes
1 answer
5k views

How to set up SSH tunel for all (most) internet traffic of Windows 10?

The setup is as follows: Computer A (behind a firewall with open SSH port 22) OS: Windows 10 Installed Putty Computer B (outside firewall, full admin rights) Raspberry Pi OpenSSH installed A ...
ares_games's user avatar
5 votes
2 answers
4k views

autossh not working in background

I am trying to setup autossh to run a tunnel to my VPN server. If I use autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R 10000:localhost:22 console@<myvpnip> it seems to ...
ericksonla's user avatar
1 vote
1 answer
245 views

Automated forwarding to reverse tunnel

I have a Raspberry Pi (remote) which is behind a NAT. In order to access it from my home computer (local), I connect it to my ASW server (server) via reverse tunnel as described in various posts. ...
Nickpick's user avatar
  • 183
3 votes
1 answer
6k views

Relay two SSH connections together

I have three machines: I have physical access to localhost I want to ssh into host1. However, it is behind carrier-grade NAT, so I can't ssh directly to it from localhost relayhost is set up to help ...
ericksonla's user avatar
0 votes
0 answers
425 views

Access OpenVPN client via SSH tunnel?

I know this sound weird, but... I have a chromebook that connects to my VPS via a SSH tunnel over port 8080(because it can't connect to openvpn). My raspberry pi is connection to the VPN on the same ...
user8292439's user avatar
1 vote
1 answer
5k views

"ssh_exchange_identification: read: Connection reset by peer" when trying connect by ssh using a port redirected via ssh tunnel

The description of my problem is the following. I have my work computer, that is always online and has a static IP address. I have my laptop, that I travel around with — obviously, it has no static ...
Dmitry Tsirkov's user avatar
1 vote
1 answer
3k views

SSH tunnel and VNC

I'm using Porteus 3.2.2 to connect to a VNC server in the internet through a SSH tunnel, and I'm trying to automate it as much as possible. I have this script that creates the tunnel and keeps it ...
Luis's user avatar
  • 11
0 votes
1 answer
440 views

SSH through Bastion server difference between relogin and proxy

I am not very versed in the inner workings of SSH etc. so bear with me. We are using a Bastion server through which people need to SSH to do their work. Normally this would be SSH to bastion and then ...
Wealot's user avatar
  • 125
0 votes
1 answer
462 views

How to tunnel network share directly to share's host?

I have tunneled mixed linux and windows clients to a 'within-firewall client' (that could access the share's host) before, so I know that that, at least, is possible. But what about tunneling ...
user41010's user avatar
1 vote
1 answer
136 views

SSH Access via tunneling

I have the following setup, Machine A (Windows 10 & connected to ISP(X)) and Machine B (Windows 10 & connected to ISP(Y)). Both of these machines (A & B) do not have any direct ...
Gokulnath Kumar's user avatar
1 vote
1 answer
7k views

Force browser (Chrome OR FireFox) to use specific network interface

I need to be able to view pages of my website from outside our network. I need to be able to use separate nameservers as well. Ive found the easiest way is to just launch an SSH tunnel, then I can ...
Justin's user avatar
  • 153
1 vote
1 answer
2k views

How to set up automatic SSH tunnel

I've been using SSH's remote forwarding feature to forward connections to a Unix domain socket on a remote host example.com to a Unix domain socket on my local machine. Both machines run Linux. The ...
Jon Smark's user avatar
  • 117
0 votes
1 answer
763 views

Is it possible to use port knocking with autoSSH?

How do I use port knocking with autoSSH? My current solution is to run the script - #! /bin/bash while : do knock myhomecomputer.com 64001 && sleep 1 && knock myhomecomputer....
Lord Loh.'s user avatar
  • 1,024
0 votes
0 answers
409 views

How can I keep SSH connection alive?

I use Ubuntu 14.04 on my server and I've added these lines into /etc/ssh/ssh_config: (as it's mentioned here) ServerAliveInterval 300 ServerAliveCountMax 2 ClientAliveInterval 300 ClientAliveCountMax ...
Martin AJ's user avatar
  • 101
-1 votes
1 answer
1k views

Own Private traffic tunneling using vps

Services like WTFAST and other "traffic tunneling" services run over a server, but how exactly they do that? Using SOCKS Tunnel? SSH tunneling? Is that possible to replicate services like that using ...
PlayMa256's user avatar
  • 131
0 votes
1 answer
930 views

piggyback FTP over SSH tunnel

I want to piggyback FTP over SSH tunnel to traverse the jump host. FileZilla as the client but don't wan't to use WinSCP. I tried SOCKS proxy, no succeed :(. Anyone here to assist please? Please see ...
Hossein Oliabak's user avatar
1 vote
2 answers
3k views

Setting up ssh tunnel through multiple hosts and with different users

I have the following ssh connections: user1@local --> root@machine1 --> root@machine2 --> abc@machine3 I need to be able to connect from local directly to machine3: [user1@local]$ ...
Lidia's user avatar
  • 111
1 vote
1 answer
2k views

OpenSSH tunnel and connect to MySQL

Hi I'm trying to use PuTTY to open a SSH tunnel and connect to a remote MySQL server. PuTTY: Remote SSH Server IP and port MySQL Port on the remote server Tunnel: Local address and port on local ...
The One's user avatar
  • 115
1 vote
0 answers
223 views

SSH port tunnelling to access device on VPN server's network (not connected to VPN)

not sure if this is possible (maybe with double tunnelling?) or whether it would even be helpful. But, first, 1) let me tell you about my setup and then 2) what I want to achieve and finally 3) why I ...
Marek Tomašovič's user avatar
0 votes
3 answers
361 views

Create SSH over HTTP between computers of different networks without public IP

I have a nonroot server with public IP which only accepts HTTP requests (not just a port restriction), and two local computers with only private IP on different networks. I'd like to establish an SSH ...
andrew's user avatar
  • 1

1
3 4
5
6 7
12