Questions tagged [ssh-tunneling]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Port forwarding from host machine to virtual machine through SSH

I have installed apache2 web server on a virtual machine (lab 2) which has the ip address of 192.168.1.233. Now I want to access the server from my host machine's web browser. My host machine ip is ...
Amit's user avatar
  • 1
1 vote
1 answer
27 views

ssh tunnel and change IP

I create my tunnel in my laptop via: ssh -p 22 -CfND 7777 mohsen@myserver After input my password, connection is established. And via socks5 in firefox I use 127.0.0.1:7777 and I can browse many ...
PersianGulf's user avatar
  • 10.8k
0 votes
0 answers
34 views

SSH tunneling over cloudflare tunnel for linux server

I need to connect to my linux server over cloudflare tunnel to protect my server. I have some user and need it for this. can every one help my? I tried this commands: mkdir Argo && cd Argo ...
ali's user avatar
  • 1
0 votes
0 answers
29 views

Create Network Interface with SSH Tunnel

My question has already been asked with this exact title, however since new users brilliantly cannot ask further questions in the comment section because of reputation the only viable option that I ...
mcpedro99's user avatar
1 vote
0 answers
46 views

Issue with screen command and ssh-tunnel

From 2018 I've been using custom tunnels from remote computers (RPi) and my desktop but lately I'm starting getting problems (regrettably random). This is the scenario: Remote computer (Raspberry Pi - ...
dstonek's user avatar
  • 199
0 votes
1 answer
79 views

I can tunnel using terminal but not using mobaxterm gui, why?

ssh -L machine_port:forwarded_ip:forwarded_port user@ip_of_ssh_server -p port_of_ssh_server Example. SSH server is 10.50.10.50. SSH port is 22. Remote server is of same ip i.e localhost. I've ...
barnyard9's user avatar
5 votes
1 answer
132 views

ssh `ClearAllForwardings=yes` causes -L on the command line to be ignored

Consider the following command (which is part of a script I'm writing): ssh -oClearAllForwardings=yes -NL 5555:localhost:5555 foo I want ClearAllForwardings=yes because I might have LocalForward ...
SystemParadox's user avatar
1 vote
0 answers
35 views

pcscd unix domain socket forwarding

I want to forward smart card request to a pc where smart card is connected but am unable to forward socket via ssh source : 10.169.213.211(server) destination : 10.169.41.124(client) what I attempt to ...
Itsme's user avatar
  • 11
0 votes
1 answer
36 views

SSH Browser Rendering Stuck on Private Key (Cloudflare)

I have sucessfully tunnel a SSH over Cloudflared but it keep asking for private key instead password only like tutorial, so i found this solution for help https://community.cloudflare.com/t/second-...
Rezy Tijo Waskito's user avatar
0 votes
0 answers
37 views

Reverse tunnel using systemd

I have this service file to make a reverse SSH, works fine, on the other server I can see it, problem is I left it over night, in the morning I've checked the service was active but on the other ...
Martzy's user avatar
  • 11
0 votes
1 answer
117 views

How to tunnel to host using ssh config?

Command I'm using to tunnel: ssh -L port:url:port username@hostname Can I define this in my ssh config? something like this pseudo code: host web user url hostname externalPort ...
Nickotine's user avatar
  • 469
0 votes
0 answers
400 views

Alpine linux how to load system into RAM

I need advice if possible to load entire system into RAM. Let's imagine following situation: Booting LIVE OS from DVD and login as root lsblk shows NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 ...
Rafal Niznik's user avatar
0 votes
1 answer
67 views

Is it possible to redirect squid traffic from Host A through Host B(Squid)?

Can traffic of Host A having squid proxy redirect all its traffic to Host B's squid proxy using ssh tunnel? Couldn't find any solution. A help will be appreciated. Solution form this https://unix....
Vishal Sanghani's user avatar
-2 votes
1 answer
49 views

Configuring an AWS E2 proxy for SSH-tunnelling your web browser [closed]

A web browser usually connects to the Internet directly. Sometimes that's undesirable. On such occasions, routing traffic via another system is preferable. VPNs achieve the desired result, but ...
bs-'s user avatar
  • 33
0 votes
1 answer
22 views

Restricting client-side SSH configurations

We allow a small group of student users to connect to our servers using ssh with local forwarding in order to access data science / programming resources such as Jupyter, rstudio, etc. Recently I have ...
jay's user avatar
  • 101
0 votes
1 answer
170 views

Create ssh config to VNC server with tunnel via intermediate machine

I recently found out about ssh config file where one can setup frequently used ssh connections. However, I am having troubles transforming one command which connects my computer to VNCServer running ...
Arual's user avatar
  • 3
0 votes
0 answers
171 views

How to debug an SSH-tunnel that doesn't work (SSH in itself works)?

I posted a question at Ask Different about SSH tunneling of VNC and SMB on MacOS because I thought it was specific for Mac, but it doesn't seem so. In short, I can SSH from my machine A to machine B (...
d-b's user avatar
  • 1,891
1 vote
0 answers
27 views

cassandra tunnel failing

I am having cassandra community edition 3.11.13 running on private subnet in AWS. I am trying to create tunnel to the cassandra using below commands. ssh -vvv -N -L 9042:cass-ip:9042 username@jumphost-...
rahuls_'s user avatar
  • 11
0 votes
1 answer
37 views

ad-hoc proxy between remote machines using ssh

I want to bridge 2 ssh tunnels. I can ssh to hosta.example.com and to hostb.example.com from my machine, myhost.example.com (there may be jump boxes firewalls, other stuff in between, but suffice to ...
symcbean's user avatar
  • 5,452
0 votes
2 answers
114 views

Whats the purpose of SSH Tunneling when anyone can access that server?

Let me explain the scenario that goes in our company. We use VPN. Then, we use Remote Desktop Connection RDP and connect to a server. From that server, we access other remote application servers using ...
zeeshanseikh's user avatar
0 votes
1 answer
289 views

ssh -w: Bad tun device 'tun0'

I'm attempting to create an SSH tunnel and utilize it as a standard network interface. Here is what I have tried: myuser@client-pc: ip tuntap add mode tun user myuser name tun0 ip address add dev tun0 ...
Some Name's user avatar
  • 255
0 votes
2 answers
295 views

ProxyJump in login->compute node still requires password

I want to ssh from LAPTOP to COMPUTE but have to go through LOGIN, and COMPUTE and LOGIN share users (so no separate ssh configs). This question is similar to this one with the exception that in my ...
Bram Vanroy's user avatar
8 votes
1 answer
1k views

How much data transferred per user via SSH over time period

I have an Ubuntu server with approximately 20 users who primarily use it for SSH tunneling. I would like to know if there is any way to determine the amount of data transferred by each user over a ...
Javad Zamani's user avatar
1 vote
0 answers
524 views

Using mosh with SSH jump hosts

I have a reverse SSH tunnel setup between bigbox and jump so that I can login into bigbox from where ever (it is behind a firewall) by using jump as a middle man. This works fine: I just ssh bigbox ...
oligofren's user avatar
  • 1,150
0 votes
0 answers
63 views

Restrict user for ssh tunnelling

I'm trying to create a user without shell access just for port forwarding through ssh. The shell of the user is set to /usr/bin/false, but everytime i try to login through ssh it receive Permission ...
deodre's user avatar
  • 1
0 votes
1 answer
2k views

SSH Tunnel through proxychains

I hope my question make sense So I have a JumpServer that has a VPN connection to another subnet ex. 10.x.x.x. This subnet is only accessible via JumpServer. So I can connect to 10.x.x.x from my local ...
noobwithskillissue's user avatar
0 votes
0 answers
112 views

SSH remote tunnel works manually but not as system service

I have setup remote/reverse tunnel cloud server <- in-house server and I can access http://cloudserver.com:8001 successfully. In the in-house server I manually execute the following and it works ...
Theofanis's user avatar
  • 101
0 votes
0 answers
176 views

Jump ssh connection to Docker container requiring jump machine password

I am working on a remote cluster, where I have direct access to a manager node that redirects me to the compute nodes using Slurm. On one of the compute nodes, I have a running Docker container, and I ...
Carlo's user avatar
  • 121
0 votes
0 answers
59 views

Fallback to alternative jumphost address upon primary jumphost disconnection

I have a subset of servers that I can only reach via a jumphost connection, for which I have two independent addresses to utilize. Normally, this is straightforward and either of the two jumphosts can ...
Andrew's user avatar
  • 1
0 votes
0 answers
43 views

Individual connection of people via ssh

I have different users on the server and each of them has a username and password I want each user with his own username to be able to connect to the server with only one device at a time and not to ...
Hossein Sharbati's user avatar
-1 votes
1 answer
119 views

I have a raspberry pi can i use minecraft and tunneling with localhost.run

Hey i have a raspberry pi with raspbian installed Im wonder if i could use localhost.run which is a website that allows tunneling with ssh could i use this with a mc server looking to run java edition ...
Noah's user avatar
  • 1
0 votes
1 answer
402 views

Using ssh reverse tunnel as gateway to reach machine under NAT

I'd like to reach a machine under a network with NAT and without port forwarding. The machine "closed" behind the no-port-forwarding NAT is called RaspberryB. This machine create a reverse ...
Neopard's user avatar
  • 11
0 votes
1 answer
346 views

SSH MaxSessions but not for whole system only for specific user

I want to limit ssh tunnel, but not for all users in my system only for specific users ssh maxSession works for the whole system but I need a way to do it for specific users. (don't suggest doing it ...
DIC3's user avatar
  • 3
0 votes
1 answer
335 views

SSH reverse tunnel and port forward to a different machine on remote network

i am trying to do something , but i cant get it to work After at least 4-5 hours of research and trying , its time for help I want to connect to a second remote machine trough a primary remote machine ...
Antoine Lanaud's user avatar
0 votes
1 answer
169 views

How to forward SSH tunnel to a CIDR range or several local IPs on the local host

I would like to open an SSH tunnel as follows: ssh -f -N -L 172.16.0.0/12:5433:127.0.0.1:5432 server but this command raises an error: channel_setup_fwd_listener_tcpip: getaddrinfo(172.16.0.0/12): ...
s.k's user avatar
  • 429
1 vote
1 answer
271 views

Saving the dynamically allocated port of SSH tunnel

There is already a great question and answer here, but I have a different case. I create a tunnel with the following command: $ ssh -N -R 0:192.168.0.16:80 [email protected] Allocated port 35007 for ...
Dmytro Soltusyuk's user avatar
0 votes
1 answer
252 views

Why still need local port forwarding for SSH tunneling

IIUC, dynamic port forwarding supports all the use case of local port forwarding, I am curious whether there are still some use cases of it that dynamic port forwarding cannot do?
ariverhorse's user avatar
4 votes
0 answers
741 views

How do you ssh using zstd dynamic compression?

I want to set up my ssh tunnel to do dynamic compression so that I get maximum throughput for the bandwidth and CPU resources I have available on each end. Since gzip compression is built-in and not ...
ChinnoDog's user avatar
1 vote
1 answer
820 views

Tunnel 2 server

I am looking for a solution to tunnel two servers to each other. That is, in such a way that all data is sent from the source server to the destination server in an encrypted form and cannot be ...
Ali's user avatar
  • 11
0 votes
1 answer
153 views

Run command by ssh and 1 jump in the middle

I am currently running the following command from a sh file, which checks if a file exists and reads the response: sshpass -p "$PASS" ssh -t $USER@$IP 'echo '$PASS' | sudo -S [ -d /myFile ]' ...
Baffer's user avatar
  • 1
0 votes
1 answer
157 views

How do I expose a port that an app is only allowing local connections to?

An app on linux-based "headless-box-1" is listening for HTTP connections on http://127.0.0.1:7860. Which restricts connections to self. But I wish it was listening for connections from any ...
Benjamin H's user avatar
0 votes
1 answer
606 views

How does local SSH tunnel (-L) work with no remote command (-N)?

I am new to SSH tunneling and I am trying to understand how -L works in conjunction with -N. First, let me confirm my understanding of local SSH tunnel by itself: ssh -L 10000:theprotectedserver.com:...
James Wierzba's user avatar
0 votes
1 answer
2k views

Enhancing Performance of X11 Forwarding [duplicate]

I'm succeeding in running remote applications in local windows when the remote server is on the same LAN as the ssh client. However, when I attempt to accomplished this on remote servers that are ...
Lonnie Best's user avatar
  • 5,103
1 vote
0 answers
428 views

How to bind SSH SOCKS5 proxy endpoint to a specific interface?

I'd like to use SSH on my Windows box to setup a SOCKS5 proxy to my multi-interface pfSense box and want the proxied traffic to be routed over a specific interface on the pfSense box. The -b option ...
zencraft's user avatar
  • 113
3 votes
1 answer
704 views

forward remote tcp port to local port

I have the following setup: The unit constantly tries to connect to the Remote Server on a specific known port. On the Remote Server, there is nothing but open TCP ports. I want to forward the Remote ...
Rami Hassan's user avatar
0 votes
2 answers
288 views

Can a SSH reverse tunnel accept non-local connections?

I have a server in my office behind a firewall, a home server behind NAT, and a laptop I carry around. Sometimes I want to reach the office server from home so I did the following setup. Home router ...
Atilla Filiz's user avatar
0 votes
0 answers
22 views

Treatment of parameters %h:%p for switch -W in multi hop jumps in ssh

With ssh -oProxyCommand="ssh -W %h:%p -oProxyCommand=\"ssh -W %%h:%%p -oProxyCommand=\\\"ssh -W %%h:%%p root@jmp1\\\" root@jmp2 \" root@jmp3" root@jmp4 you can do a ...
Matthias Altmann's user avatar
0 votes
0 answers
89 views

Securely Forward Service on Private Network to Client on Another Private Network

I have two computers on private networks and a VPS, all running Linux. I would like to be able to make a secure tunnel between the two computers so that one can securely access services hosted by the ...
Graham H's user avatar
0 votes
0 answers
322 views

SSH reverse-proxy/redirection

I am looking for a solution to my use case: I moved my SSH daemon to non-default port and would like to keep all the script kiddies connecting to my SSH via port 22 in the ssh pit (purely just for ...
jackar's user avatar
  • 1
0 votes
0 answers
55 views

Forwarding traffic via ssh from printer to raspberry pi

At my place of work, we have two different kinds of printers: Konica and HP. They are connected to our network and each have a specific ip. Each employee has an account they must access before ...
Austin 's user avatar

1
2 3 4 5
14