Skip to main content

Questions tagged [ssh-tunneling]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
15 views

Git ls-remote to github fails with classic "SHA-1 not supported" on tunneled ssh session but `ssh -T [email protected]` doesn't

Cross-posting from here as suggested by the community. A bit of context: At my company we do tunneling to ssh into EC2 boxes. This tunneling command is as usual, uses ForwardAgent and the proxycommand ...
Stoic Alchemist's user avatar
0 votes
0 answers
15 views

SSH port forwarding was working, now it's not

I have a pair of CentOS7 servers in a production environment where the server on the internal network opens up an ssh SOCKS proxy tunnel to the server on the edge network to allow the internal server ...
dbush's user avatar
  • 113
0 votes
0 answers
13 views

Reverse SSH Tunnel from ESXI Client to a vServer to access OpenSlides

Hello there sorry for my bad english as it is not my native language, I want to access a Docker application called OpenSlides from a ESXI Server that is currently blocked by the Firewall from my ...
Huu Duong Nguyen's user avatar
0 votes
0 answers
25 views

SSH tunnel error: sys_tun_open: failed to configure tunnel (mode 1): Invalid argument

I'm trying to create a SSH tunnel between 2 Raspberry PI's both running Debian Bookworm. I try to establish the connection using the command sudo ssh -w0:0 <user>@<ip> -p<ssh port> ...
user613537's user avatar
0 votes
1 answer
33 views

Enabling Java JNDI LDAP connection to Active Directory using SSH through remote SSH tunnelling

Firstly, I would like to validate my idea for the PoC, specifically I would like to understand whether this can be possible or not and furthermore some pointers with regards to how it can be done ...
theimpatientcoder's user avatar
0 votes
0 answers
27 views

Give an user the permission to open an ssh tunnel with a specific port < 1024 (privileged port) [duplicate]

If you try to open a tunnel with a normal user with a port < 1024 with for example: ssh -L 127.0.0.1:1023:someip:someport user@host -N you can't because you get bind [127.0.0.1]:1023: Permission ...
res1's user avatar
  • 278
0 votes
0 answers
183 views

How to bind a forwarded local port to 0.0.0.0 instead of 127.0.0.1? "Operation not permitted" when using GatewayPorts=yes

A (remote) SSH server remote runs a service on (remote) 127.0.0.1 port 20001. I want to make this service available locally via SSH port forwarding: ssh -vvv -4 -L 20001:127.0.0.1:20001 remote Port ...
finefoot's user avatar
  • 3,132
0 votes
0 answers
21 views

ssh reverse tunnel works, but Davmail not working through it

I am trying to make Davmail IMAP server, which is now inaccessible (due to geoblocking, but that is not necessarily relevant) accessible by anyone, through my VPS server (called server). I have ...
Jakub Lucký's user avatar
0 votes
0 answers
32 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
66 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
0 votes
0 answers
99 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
50 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
55 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
467 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 ...
achhainsan's user avatar
5 votes
1 answer
201 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
56 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
62 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
59 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
217 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
  • 489
0 votes
0 answers
674 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
100 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
60 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
  • 43
0 votes
1 answer
26 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
233 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
253 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
1 vote
0 answers
29 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
53 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,821
0 votes
2 answers
122 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
487 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
  • 265
0 votes
2 answers
428 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
775 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,170
0 votes
0 answers
74 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
3k 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
125 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
52 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
159 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
621 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
436 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
370 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
191 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
  • 471
1 vote
1 answer
347 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
302 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
988 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
903 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
167 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
191 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
1k 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
1 vote
1 answer
3k 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,175
1 vote
0 answers
488 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

1
2 3 4 5
14