Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
10 views

Forcing git to use existing ssh connection [duplicate]

At our university we have a node based/cluster server. Because of "security", they introduced a 2-Factor Authentication procedure every time someone connects to the server. Also, because of an ...
2
votes
0answers
9 views

Cloud Foundry and WinSCP

What is the simplest way to access the Cloud Foundry application container using WinSCP? The way I know, I need following steps: Login / Target cf login cf target -o app-org -s app-space Retrieve ...
0
votes
0answers
18 views

Transfering config from AnonyTun to HTTP Injector

On my android phone I use anonytun and the configuration looks like this And I want to use the same config in an other app called http injector which does the same thing but I can not find where to ...
0
votes
0answers
41 views

ssh local port forwarding not working [duplicate]

My goal: I have a computer in a location A, let's call it host-A. I have a computer in a location B (host-B) running an ssh server, and I can ssh from host-A into host-B. I want to access a website ...
1
vote
0answers
67 views

SSH port forwarding for VNC on remote server with agent forwarding

Trying to connect to a remote VNC server, such as one would with an SSH tunnel: ssh -L 5901:127.0.0.1:5901 -N -f -l username server_ip_address However, the VNC server can only accept connections ...
0
votes
1answer
80 views

no network access in /etc/network/if-up.d script

I have a raspberry pi behind a NAT and a remote virtual server. I want to be able to access the pi via remote shell from outside. To achieve this I created an executable file /etc/network/if-up.d/...
0
votes
0answers
15 views

SSH server only for Tunneling

I'm trying to create Linux Terminal server. For this I'm using X2Go with ssh. I would like to separate ssh server from X2Go. So i create new sshd config and systemd unit for second ssh server with ...
0
votes
2answers
50 views

Tunnelling server traffic throuh SSH when port forwarding on network is unavailable?

Setup At home, I have a little Raspberry Pi 3 that runs services that are exposed to the internet. For example, it is running a HTTP server. I will call this server raspberry. I can manage raspberry ...
0
votes
1answer
17 views

Extend or inherit existing entries in .ssh/config

I have the following entry in my .ssh/config file: Host myhost Hostname localhost User me ServerAliveInterval 30 ProxyCommand ssh -q external-relay /usr/bin/nc -w 90 localhost 9889 ...
0
votes
1answer
52 views

PHPStorm + docker + xdebug + db ssh tunnel

Locally I have following docker-compose configuration: nginx: build: context: ./nginx ports: - "80:80" volumes: - ./../logs:/home/web/logs/ - ./../:/home/web/my-website.com/ ...
0
votes
1answer
56 views

How to remotely write to a file using multi-hop SSH

Questions like How to remotely write to a file using SSH are about a direct SSH. But I am reaching the end of a reverse tunnel which ends on intermediateserver. That is, I'm ssh'ing to one machine ...
0
votes
0answers
16 views

VPN Configuration

Im trying to reach a network at a remote site. I need to have my machine configured to have access to equipment on this network(not computers). I have a debian machine located on this network but the ...
0
votes
2answers
50 views

How to check for exit code of the ssh tunnel?

I have a command of the form: dd if=/my/block/device | ssh myuser@otherserver "gzip > file.gz" How to check if the ssh command failed due to connectivity problems? Thanks.
-1
votes
2answers
33 views

Transferring files from Ubuntu via inner server (ssh-> ssh) with FileZilla

Currently, I can access a server called opt2 with two ssh (I can't access this server directly). It goes like this in terminal. Each ssh has me enter a different password: ssh username@athena.ecs....
0
votes
2answers
24 views

SSH tunnel between three machines A -> B-> C

I've got three machines. A - my machine, that has access to machine B via ssh but no access to machine C C - another machine that exposes RestAPI on http://machineCip:1234 B - yet another machine, ...
1
vote
1answer
99 views

Notepad++ NppFTP SSH Tunnel

I am currently stuck on whether it is possible to connect via SSH Tunnel on Notepad++ Extension NppFTP? I can connect via SFTP to the server directly however about to loose that connectivity and thus ...
0
votes
1answer
13 views

How to tunnel traffic from localhost:port1 to remotehost2:port3 through a middle host remotehost3 which can be accessed only through SSH?

I'd like to execute a tunnel on my localhost so all the traffic on a host ends up on a remotehost through a middle hop that can only accessed by ssh LOCALHOST ________ MIDDLEHOST_______________ ...
0
votes
1answer
46 views

SSH remote forwarded port doesn't accept external connection (even with `GetewayPorts yes`)

I am trying to set a reverse/remote SSH port forward, using this schema where the Apache Linux server forwards the port 80 to the SSH server. So On the SSH server I changed the configuration to ...
0
votes
0answers
48 views

Can I repair corrupted windows 10 by running DISM or SFC but over the web using SSH?

Assuming the windows 10 system had all the files and programs ready to accept remote access via SSH (a guide or a small step by step reference would help) and also assuming that all access codes and ...
2
votes
2answers
388 views

How can I set in the bitvise ssh client, the tunnel automatic connect if open windows or restart windows?

Now the tunnel works if I open the bitvise application and click the login button. I want to change that. I want the tunnel automatic open if open windows or restart windows Where I can set the ...
2
votes
0answers
133 views

Unable to access a linux server behind NAT via reverse SSH tunnel with passwordless SSH login

Problem I cannot connect to my homeserver via passwordless SSH login from my clientcomputer/remotecomputer via my relayserver. I get homeserver@localhost: Permission denied (publickey). History/...
1
vote
0answers
1k views

Use VPS as a proxy, VPS being tunneled to a server with dynamic IP

I'm trying to connect to a VPS as if this one was a proxy server Edit Proxy being an HTTP proxy not a SOCKS one, so that any app needing an HTTP proxy can connect to this HTTP proxy with this type of ...
5
votes
4answers
369 views

PuTTY crashes on exit and requires computer reboot

PuTTY crashes when the program tries to exit. When it crashes, the window will freeze and will not close no matter what. Force close will not work, the task manager will not work. pskill from pstools (...
0
votes
1answer
348 views

sshd “listen on all interfaces” behaviour, OSX and Ubuntu

Given an extra loopback interface in the 127.0.0.X (X>1) range on BoxA (which can be running either OSX or Linux), I want to bind port 22 of this extra loopback interface to a forward SSH tunnel (ie. ...
0
votes
2answers
153 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/...
0
votes
1answer
377 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 | ...
0
votes
1answer
30 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-...
0
votes
0answers
148 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 ...
0
votes
0answers
480 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 Me@myhomeserver.noip.net I have convigured firefox proxy settings with localhost ...
0
votes
0answers
173 views

SSH Tunnel in to Ubuntu 16.04 headless server with Firefox proxy

I have a remote Ubuntu 16.04 headless server VPS I can ssh in to fine, but trying to establish an ssh tunnel to access the web front end on a few apps I'm having real difficulty with, and hope someone ...
2
votes
1answer
129 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 ...
0
votes
1answer
29 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 ...
1
vote
0answers
111 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)?
0
votes
1answer
36 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 ...
0
votes
0answers
148 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-...
0
votes
1answer
34 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 ...
0
votes
0answers
51 views

How can I avert ssh tunneling interference

I am using a tunnel through machine a to access machine b, and it works fine for either ssh or sshfs separately. I need to have both an active remote session and a mounted filesystem for local work. ...
0
votes
1answer
123 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 ...
0
votes
0answers
83 views

ssh access between VMs and host machine when bridge networking is not allowed

I have one physical remote machine on campus network (195.148.x.z) with public IP. I have to ssh into some VMs which are installed on another PC from university network (but on different subnet. 130....
1
vote
1answer
225 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" --...
0
votes
0answers
86 views

SSH Tunnel not working?

I'm testing how to set up an ssh tunnel, but when I do it through putty the prompt needs to be up and won't work closed. Any ideas on how to set this up? I have another program working on the VPS, so ...
1
vote
1answer
406 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 ...
0
votes
0answers
31 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 (...
1
vote
0answers
303 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 ...
0
votes
0answers
39 views

how to use Autossh with kitty

I'm looking for a way to use AutoSSH with Kitty tunneled with a VPS running Debian 9 (Stretch). This topic is linked with another one: KiTTY for of PuTTY script that kills a specific PID ...
0
votes
1answer
739 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 ...
0
votes
1answer
40 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 ...
1
vote
1answer
40 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 ...
0
votes
1answer
706 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 ...
1
vote
2answers
75 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 ...