Questions tagged [ssh-tunneling]

An SSH tunnel provides an encrypted channel based on the SSH protocol.

Filter by
Sorted by
Tagged with
0
votes
1answer
7 views

Access NATed remote system through an existing ssh connection

There is a machine RemoteA that is behind a NAT somewhere on the internet. It can connect to an ssh server. There is another machine called RemoteB that also has a connection to the same ssh server. ...
0
votes
1answer
19 views

How to use my VPS to redirect traffic to certain port tomy Windows PC which is behind NAT?

I have an Ubuntu VPS which is accessible. Also, I have a local Windows PC which is not, because of NAT. What I want to do, but am struggling with: I want that all traffic to certain port to the VPS ...
1
vote
1answer
13 views

How to access vnc over HTTP using SSH Tunnel?

I have an AWS Debian9 EC2 instance running, I have set up TightVNC and can access the server via a VNC client. I've allowed access to ports 5900, 5901, 22, 80 and 443 via the security groups in AWS. ...
0
votes
1answer
19 views

How to proxy browser traffic through ssh tunnel?

Currently I have a tunnel setup with my work Linux box (remote machine) and my macbook at home (local machine). Jira and other tools can only be accessed through our intranet so I'd like to use SOCKS ...
0
votes
0answers
24 views

SSH through multiple servers (to access visdom server)

I am hosting a visdom server (essentially I need to access a website hosted locally) on my home computer. I am running code on a server (private_server) that I cannot access directly from my home ...
0
votes
1answer
12 views

Is it possible to authenticate a Server by using its public Key in Client?

Our existing mechanism, for password less authentication in GNU/Linux, is to create the ssh-keygen in the client and copy the public key of client to server and the server can be authenticated from ...
0
votes
1answer
38 views

How to run a local script with whitespace in arguments on a remote machine through multiple SSH?

Similar to my question here, except with multiple ssh, and similar to this question but with white space in the arguments... I would like to run a local script, test.sh, on a remote server via ...
1
vote
0answers
18 views

Tunnel to access internet

There is a central server A that doesn't have internet access. I am supposed to log in to a server B (that has an internet connection) and launch jobs on A. I wonder if I can create a tunnel from A to ...
0
votes
0answers
30 views

Change destination IP of the packet to localhost and redirect it to another port

Following is the requirement First, change locally generated requests/packets destination IP to localhost. For an example 172.17.0.1:7199 -> 127.0.0.1:7199  Then redirect this request/packet to ...
0
votes
0answers
37 views

Use Network Namespace for SSH Tunnel

I have an Ubuntu 18.04 server in which I've created two virtual interface pairs (veth0a & veth0b) and assigned the end of one interface (veth0b) to a new network namespace (netns0): ip netns add ...
0
votes
3answers
43 views

Tunneling without SSH

If I understand correctly, SSH tunneling works as follows: Machine B is running the SSH daemon (process b). Machine A opens an ssh client (process a) Machine A connects its ssh client to machine B'...
0
votes
0answers
38 views

Why does reverse SSH tunnel endpoint server crash?

UPDATE: This may be an ISP or routing issue. The crash appears to happen only with specific user locations. Not browser dependent, but maybe ISP dependent. I'm using an Amazon Web Services virtual ...
0
votes
0answers
19 views

How to make ssh local forward through intermediate server's port

I want to connect to target_server from local_pc through jump_server. Besides, I also want local forward the specified ports of each machine, i.e. local_pc:port1 --> jump_server:port2 --> ...
1
vote
0answers
48 views

Is there a way to daisy-chain SSH commands using ssh config?

I am trying to SSH from a docker container to a remote server. The docker container is on a Mac. All the authentication to connect to the remote server is done from the Mac, not the docker container. ...
0
votes
0answers
43 views

Why does this ssh tunnel command give an error on Mac but not Linux?

I was trying to tunnel a psql connection through a remote login server to a postgres database server, and I encountered some kind of difference in the way the arguments are parsed that led to a period ...
0
votes
0answers
17 views

How to configure SSH Dynamic forwarding through 2 hops?

A Raspbian device is configured on a remote LAN. The remote LAN's router is accessible via SSH dropbear. The goal is to access the router's configuration web (port 80) GUI through an SSH tunnel ...
0
votes
2answers
47 views

Dyamic tunnel troubleshooting

Goal: Configure Ubuntu and Firefox to SSH into a remote Asus router and access the remote router's configuration GUI via Firefox. top from the remote router returns: PID PPID USER STAT VSZ %...
0
votes
1answer
52 views

Tunnel on remote MS-windows port 443

I need to create a tunnel in a remote MS-windows, so the port 443 in MS-windows is redirected to a remote target on port 443. What I'm trying to do is this, from my remote server: ssh -N -R 443:...
0
votes
1answer
41 views

Clarifications for SSH tunnels over HTTP (or HTTPS)

I noticed that when I create a tunnel locally from my PC to the remote one, for some devices (generally routers), the connection via http or https does not take place. I get a pop-up that says: The '...
0
votes
1answer
50 views

SSH Permission Denied (publickey)

I am trying to connect to SSH for the first time. But it says The authenticity of host '[<host>]:<port>' can't be established. ECDSA key fingerprint is SHA256:...
0
votes
1answer
45 views

After working, now “shell request failed on channel 0” in SSH

I was using my shell to ssh into a server. It suddenly threw a "broken pipe" error in the middle of my work, and now, when I run the same command, I get: (I've replaced server path with $SERVER_PATH, ...
1
vote
1answer
20 views

How to keep sshpass process in the background?

sshpass -p '1234567*' ssh -L 1080:192.168.0.1:2222 admin@gateway.com -p 4422 -f -C -N The above code works on macOS (creating a 1080 tunnel to 192.168.0.1:2222 via gateway.com:4422 with username ...
0
votes
1answer
101 views

How to use ssh-copy-id with multiple-hop ssh tunnel?

I'd like to copy a public ssh key from the ~/.ssh/id_rsa.pub file on my local machine to the ~/.ssh/authorized_keys file on a remote host that is two ssh hops away. In other words, localhost only has ...
0
votes
1answer
38 views

Automate SSHing into multiple connections with script

I want to ssh through three different servers. First one uses a password, second one doesn't and the third and final one has a different password than the first. Only the first one needs a username. ...
0
votes
0answers
14 views

Connection Refused when ssh forwarding multiple ports over multiple hops

I am currently ssh-ing from my laptop to a supercomputer login node, and then ssh-ing again from there into an interactive job running on the supercomputer's compute nodes. I am forwarding a single ...
0
votes
1answer
23 views

Managing many ssh tunneling connections

Everyday I lunch from 5 to 10 ssh tunneling connections to remote servers, with commands like the following: ssh -Nvvv -L localhost:8866:127.0.0.1:3478 host Some of these servers I use as proxies to ...
1
vote
0answers
34 views

SSH tunnel for VNC through IP forwarding?

I'm trying to setup a VNC connection from my local desktop to another machine. I'm having some difficulties with how to setup the port forwarding I need to make it work. The machine setup is like ...
-2
votes
1answer
50 views

How to create a tunnel SSH from my laptop to LXC installing on AWS EC2

I have an EC2 instance on AWS and I installed LXC/LXD on my EC2. My LXD has a bridge IP address that I need to access via ssh from my laptop to the LXC/LXD So if: Me (A) ------> EC2 (B) ------&...
0
votes
0answers
28 views

ssh configuration to acces NAS on my local network

I have set up a Raspberry Pi as a ssh server to serve as a gateway to my local network. Now I am looking to access a NAS drive on that local network through that ssh gateway. Remote ---- RPi (ssh ...
0
votes
0answers
11 views

SSH Tunneling, using one server for and splitting to remote hosts

I have a central server, I have 3 raspbery pi's The 3 pi's are on local networks and port forwarding is not possible so I figure a cronjob to connect outward to a central server is the way to go Is ...
0
votes
1answer
57 views

SSH bind to multiple addresses / ports at once (the -L flag)

I currently have two SSH commands, ssh -L 15000:some-instance.amazonaws.com:5432 <bastion server> and ssh -L 15001:some-other-instance.amazonaws.com:5432 <bastion server> As a result,...
0
votes
0answers
26 views

Mosh on a GPRS router's LAN through reverse tunnel

I'm new to Mosh and have to connect to raspberry pis which are behind GPRS routers which doesn't permit to connect to directly because GPRS does natting which doestn't give a WAN IP Address. So! to ...
1
vote
0answers
32 views

.ssh/config How to have Match match multiple hostnames in one line

I am trying to set up my .ssh/config so that it only uses ProxyCommand when it can't reach the server locally. However, I'm struggling to make the Match keyword match multiple hosts, so I have a ...
1
vote
1answer
35 views

Port forwarding through different interfaces

I have a remote server which has a publically accessible IP Address. On this server’s ports elements are hosted to the web on various ports. So on another PC connected to the same network I can go to [...
1
vote
1answer
27 views

route trafic between 2 wireguards tunnels

Here is my arch on my local network : Machines schema : <wg_client_1 (intwg1)> ----- <(intwg1) wg_term_1 (intwg0)> ----- <(intwg0) wg_term_2 (int eth2)> Network schema : <||...
1
vote
1answer
36 views

What should I check when I can't SSH into my box?

I update my : /etc/ssh/sshd_config, update port from 22 to 558 /etc/fail2ban/jail.local, update port from 22 to 558 add a new record in iptables iptables -A INPUT -p tcp -m multiport --dports 558 -...
0
votes
0answers
27 views

sshd: disconnecting dead client using reverse port forwarding

On a sshd server, I want to disconnect all clients that are not connected any more and were using the reverse port forwarding. I have added: ClientAliveInterval 30 ClientAliveCountMax 2 in my ...
0
votes
0answers
37 views

Is this number of active connections normal in a reverse ssh tunnel?

I've some problems with TCP connections on my VPS. Sometimes the maximum number of connections allowed on the server is reached and ssh conections are refused. I've a few devices connected to the ...
-1
votes
1answer
31 views

What's the default port of SSHFS?

I tried to Google this and I found results. Either this is not very documented, either there's something I don't understand but should. It seems like it may be port 9876 like in the documentation, ...
0
votes
1answer
33 views

Remote webservice over ssh

Want to access remote webserver. The setup is like this: LinuxDesk --> jumpuser@sshserver --> sshuser@webserver Above all of them are linux servers. web service is running on 8080 port. How to ...
0
votes
0answers
34 views

Two way non http tunnels between to servers. advantages and disadvantages

I want to run two instances of application on the same machine with only one ip address, but each application must have it's own ip. I want to "give" different ip from other machine to second ...
0
votes
0answers
26 views

Remote Tunnel Mac OSX Permission Denied

I am on a Mac and trying to create a remote tunnel. I can run ssh localhost on that Mac fine and login. I am basically following the steps in this tutorial: https://medium.com/@cristianduguet/play-...
0
votes
0answers
129 views

channel 84: open failed: administratively prohibited: open failed

I'm trying to ssh via port forwarding. This is my ssh config file: HOST A HostName B user C DynamicForward 0.0.0.0:1081 When I run "ssh A" I get: channel 5: open failed: ...
0
votes
0answers
30 views

Ssh tunneling with ProxyCommand with different usernames

I need to access a remote server (let's say host2) which I can reach only after accessing another server (let's say host1). My problem is that I have different usernames for both the machines, and ...
1
vote
0answers
21 views

How do I do a reverse ssh proxy without being able to ssh to my proxy host?

I have two hosts sitting side by side: Host 1 = Linux OS on local network 192.168.0.x --I have full admin rights. I can ssh out and into this host. Host 2 = Mac OS X. Two interfaces: --No admin rights....
1
vote
0answers
33 views

How to forward a ssh port

Curretly I have two machines. One with public ip named login and another one are in the same innet named admin. Here is what I want: When I use ssh -p 23 login, I can login to admin via 22 port in ...
0
votes
2answers
89 views

SSH: RemotePortForw. - Binding privileged port

very short and basic question, i'm having trouble in a network's homework i'm having. This is the point i'm asked to implement: Configure SSH remote port forwarding in order to redirect the port 83 ...
1
vote
2answers
497 views

Why am I getting connect_to localhost port 9190: failed. on my reverse ssh tunnel?

Good day, I'm trying to create a reverse ssh tunnel with my university's remote server. I run the following command on my laptop: < home >$ ssh -R 9999:localhost:9190 my_user@school_server.edu ...
0
votes
1answer
87 views

How can I create a double ssh tunnel with different methods of authentication?

I have my local machine, host1 and host2. host2 is only accessible from host1 I can access host1 from my local machine host1 is using a private key authentication method host2 is using a password ...
1
vote
0answers
58 views

ssh set up gre tunnel

I'm trying to create a GRE tunnel between a local Linux Mint 18.3 VM ("ServerA") running in my VirtualBox, and a remote Ubuntu 18.04 server ("ServerB") running in another location. A firewall is in ...

1
2 3 4 5
12