Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [ssh-tunnel]

An SSH tunnel leverages the SSH protocol to transport unencrypted data through an encrypted connection.

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

UDP routing through VPS to local machine for server hosting

I am hosting a Minecraft server using geyser to allow both bedrock and java players to join my server. Java compatibility was easy, I set up a ssh tunnel from Local to VPS and all worked well, however ...
clivet268's user avatar
0 votes
0 answers
24 views

sshuttle ssh_packet_write_poll error on pfsense

I’m trying to use sshuttle on pFsense CE OS and when I execute sshuttle -r *my_actual_username*@*my_actual_host* 0.0.0.0/0, following error shows up: client_loop: ssh_packet_write_poll: Connection to *...
nima's user avatar
  • 3
-1 votes
1 answer
37 views

When doing SSH through an intermediary server what are the differences between Local Port-forwarding and Jump Host?

To SSH to Server-B through an intermediary (Server-A), what are the differences between the following two approaches and which one is better? Local port-forwarding ssh -L 2222:server-b:22 root@server-...
eee's user avatar
  • 1
0 votes
0 answers
20 views

How can I configure SSH on my laptop to use a Control Master on a remote gateway?

I have a server, let's call it server, which requires a 2FA authentication every time. So, I can set up ssh multiplexing to reduce the number of required authentication. However, I usually carry my ...
Yuxuan Lu's user avatar
  • 101
0 votes
0 answers
39 views

Unreasonably slow SSH tunnel - but just in the opposite direction

While setting up rsync to a remote computer, I realized that syncing from my laptop the remote was fast, but the opposite was slow. After some debugging and iperf3, I figured that this only happens ...
doppioandante's user avatar
1 vote
1 answer
48 views

How to manage several "localhost" entries in ssh/config that only differ by port

So, I am operating in an environment where ssh is extremely limited. My simplest way to do anything is to actually channel ssh through a tunnel over aws session manager. So, here is a sample ...
Christian Bongiorno's user avatar
0 votes
0 answers
161 views

SSH keeps timing out when trying to connect to remote server

I am trying to connect to a remote server via ssh. I have done it previously without any problem. However, recently, most of the time when I ping it, it just says "request timed out" - there ...
Coco Zeng's user avatar
0 votes
0 answers
67 views

Can I access a WSL sshfs mounted location from windows explorer?

I have the following... xx@BigBoy:~ $sshfs -o IdentityFile=~/my.pem [email protected]:/home/ec2-user/my-drive/data efs xx@BigBoy:~ $ls -al efs/ total 12 ...
Jackie's user avatar
  • 191
0 votes
1 answer
241 views

SSH Permission denied (publickey) fails on Ubuntu but succeeds on MacOS

I have two machines, a MacOS and an Ubuntu. I have been working sucessfully on the MacOS, i.e. I can use my public key to connect via SSH to a server. However, when trying to use the same private &...
Richard's user avatar
  • 145
0 votes
1 answer
108 views

ssh multi hop tunnel (two hops) with ssh config and putty (or cygwin)

My Environment I have bastion server, deploy server, production server, redis server I want to port forward redis server using putty. local machine -> bastion -> deploy -> production -> ...
Jerry's user avatar
  • 101
0 votes
0 answers
43 views

Docker app can't connect to external db server

I have a legacy dockerized grails app (grails 2.2.1), that is trying to connect to a remote postgres server (not part of docker) but I keep getting connection timeouts. I've tried several forwarding ...
CoderX's user avatar
  • 1
0 votes
0 answers
174 views

SSH tunnel to access dual stack resources in AWS (IPv4 + IPv6)

I am trying to setup a Bastion and use it as an SSH proxy to access all my private resources in AWS. I am having hard time debugging why an SSH tunnel to a specific host with dual stack (IPv4 + IPv6) ...
MaesterZ's user avatar
0 votes
1 answer
642 views

WireGuard portforwarding setup

I need help with the following scenario: I have a small instance on AWS, which should accept all traffic from ports 1024:65535 and should send it to my local server. The local server shouldn't send ...
Apatus's user avatar
  • 21
0 votes
1 answer
500 views

How to setup a SSH connection using a variable hostname provided by jump server

I want to create a .sshconfig file for the case where I need to connect to a login node (the jump server), get the hostname from that node by running a command, and then ssh to that hostname using the ...
Vasilis Lemonidis's user avatar
0 votes
1 answer
160 views

SSH tunneling to avoid exposing an admin console

I'm running Lucee Server, a cold fusion server engine that in my case runs on Tomcat, on Apache. I'm looking into hardening it in various ways, and I'm running into a question about the SSH tunneling ...
Wildcard's user avatar
  • 182
1 vote
1 answer
2k views

ssh proxyjump command to config file

I use a ssh command for logging into a remote node using an intermediate node via proxyjump. The remote and intermediate nodes are Linux servers, and my client is a Macbook. This command works, and it ...
vpk's user avatar
  • 113
0 votes
0 answers
377 views

Create SSH tunnel and route MySQL traffic through using NGINX reverse proxy

My company's goal is to route MySQL traffic through an SSH tunnel, but using a reverse proxy through NGINX. We created a Linux box in our Azure environment, but are struggling to complete the process. ...
Sam Taber's user avatar
2 votes
1 answer
893 views

ssh port forward connects to bastion instead of remote server

I am facing an issue when I try to connect to remote machine (which is behind bastion host) via ssh local port forwarding. I am looking for the connection flow: my laptop --> Bastion host --> ...
nischeruku's user avatar
-2 votes
2 answers
129 views

the theory of SSH public and Private key and its application in realworld machines [closed]

there. In this question, I have a very specific one about public and private keys. So Public keys should be put on the opposite side. For example, if we have a server, the public key of the server ...
Sina M's user avatar
  • 3
0 votes
0 answers
250 views

ssh to a server behind NAT without VPS being the bridge during communication

I currently can ssh through my localhost behind NAT using VPS as reverse SSH server. ssh -f -N -R 1234:localhost:22 user@[vps_ip] And I can do the following to connect to my localhost SSH server from ...
TWTom's user avatar
  • 1
0 votes
1 answer
264 views

SSHD: Dynamic deny port forwarding

From the current ssh session on a server, what -L params did the client specify? I am trying to build a jumphost using sshd that can be used for port forwarding. The goal is to be able to get into a ...
John Oxley's user avatar
0 votes
0 answers
137 views

Autossh with jump server

I have 3 hosts: Local, Jump and Server I can connect to through jump easily enough using the -J option everything works fine using standard SSH. However I want to connect using autossh as the Local ...
TheHidden's user avatar
  • 111
0 votes
0 answers
245 views

Decrypt remote file securely with local private key

I've created a alldots.tar file mainly with dot config files from my local server. I then transferred it to my other (remote) server and there it is, cryptographed. It didn't occur at the time of ...
DrBeco's user avatar
  • 109
0 votes
0 answers
91 views

Reverse proxy with ssh tunnels

Please help with the following situation: I need to access an internal site that can be accessed only from an authenticated user&computer from the internal network. No additional software can be ...
Tech Guy's user avatar
0 votes
1 answer
54 views

how can I use iptables to forward (or redirect) traffic from one ip port to another specific IP port?

The prerequisite is: HostA: (can access public machine, can't access hostA and hostB) CentOS 7 HostB: (private machine, I can login, and it can access hostA and hostC, ) CentOS 7 HostC:...
IcLod's user avatar
  • 1
0 votes
0 answers
161 views

SSH Dynamic proxy very slow, keeps opening more channels

I am attempting to access a networked http resource from outside the network by using SSH with the -D flag. I'm using the command ssh -v -ND 8090 svr, and svr is set up as a host in the hostsfile. The ...
Kwonunn's user avatar
0 votes
1 answer
249 views

PuTTY Reverse Tunnel to MySQL

I have: A local Windows 10 PC running MySQL Server 8.0.33 on port 33060. A remote Ubuntu 20.04.6 LTS VPS running MySQL Server 8.0.33 on port 3306. I want to create a reverse tunnel using PuTTY on my ...
Tyler's user avatar
  • 211
0 votes
1 answer
70 views

Why does the login node connect to external networks but allocated compute node fail in Slurm-GCP?

I've noticed that connecting to the internet from the allocated compute node via Slurm-GCP keeps failing. For example, using wget from the login node works successfully: [me@gcp-login0 ~]$ wget https:/...
Mathews24's user avatar
  • 101
0 votes
1 answer
2k views

VS Code Remote Development giving back error

I'm trying to connect my Vs code using SSH extension to my Debian VM on azure. I tried running the SSH connection on terminal and it's working fine ssh -i Desktop/Emdad/testing/magento-testing-key.pem ...
Adnane Rbt's user avatar
-1 votes
2 answers
2k views

How can I setup an SSH tunnel from local Windows 10 to remote Ubuntu?

I have installed Visual C++ 2015 for Linux. What this does is, it takes a server name, a port number, a username, and a password, then connects to the remote machine, compiles a C++ program inside ...
user366312's user avatar
2 votes
1 answer
822 views

SSH Config based on ssh command with port forwarding

I'm trying to convert the following SSH command on a SSH File entry. My command is as follows: ssh -i identity-file.pem -L 20000:internal-host.com:8080 [email protected] -N An this is the current ...
fingerprints's user avatar
1 vote
2 answers
255 views

sshuttle automate service runs with error

I have written a service as it was given in this question but when I run the service I get only error in status. service: GNU nano 6.2 /etc/systemd/...
Mj Ebrahimzadeh's user avatar
0 votes
0 answers
224 views

SSHFS performance tanks, why?

I have two Ubuntu 22.10 computers connected one to another via SSHFS. When I copy small files there is no problem but... once I start copying several gigabytes of data at a time, the performance sinks ...
ArekBulski's user avatar
1 vote
2 answers
4k views

SSH tunnel throws an error: bind [ip]:801: Cannot assign requested address channel_setup_fwd_listener_tcpip: cannot listen to port: 801

If I forward the port from the server to my localhost (I used my web server on apache on my other virtual machine as the server for forwarding), then everything turns out without problems. ssh -L 801:...
Rag Zan's user avatar
  • 13
2 votes
1 answer
492 views

How to restart sshuttle automatically

I am using sshuttle to route some traffic automatically via an ssh jump server. It works well but in some situations i.e. switching to another Wifi network the connection breaks an i'll have to ...
Chris's user avatar
  • 161
0 votes
0 answers
59 views

IOT http multiplexing through cloud host

I'm exploring the feasibility of multiplexing http service from up to 100 IOT devices thru a single cloud host. The diagram below represents what's desired. Situation: We have complete control over ...
Mike Ellis's user avatar
0 votes
1 answer
441 views

limit users to use ssh nologin to one use at a time in ssh tunneling?

I have provided ssh nologin access for family members(with useradd -s /sbin/nologin newuser) to use it in ssh/http injector app in Android devices and NapsternetV app in iPhone devices to use as SSH ...
Pejman 's user avatar
0 votes
0 answers
135 views

forward open vpn traffic to another port

I run a openvpn server with port 2030 on my server and run a ssh tunneling on port 2020. due to there is not authentication method for ssh tunnel (in fact it is a socks connection) I want to route ...
Mr.Mmg's user avatar
  • 1
0 votes
0 answers
109 views

Ssh blockedfor foreign vps, ip not blocked

I live in a high censorship country(iran) and access to my vps was working with some methods but not others. Like ssh tunnel working fine for most of the time. Recently the ssh server fails to respond ...
Maliohammad Jaafar's user avatar
1 vote
0 answers
327 views

linux ssh tunneling limitation per user

i want to limit the ssh tunneling per user I did create a user with only ssh tunneling permission ( no shell, no directory ) now I want to limit this user not be able to connect multi devices ...
DIC3's user avatar
  • 11
0 votes
0 answers
476 views

Limit ssh vpn service to one device or connection per user

I did set up a ssh vpn on ubuntu server and created a user for that and everything is working fine. So how to limit this service to one device only for that specific created user? I am using password ...
samadadi's user avatar
  • 111
0 votes
1 answer
545 views

ssh -w bad tun device

I'm trying to create an SSH tunnel using the -w flag. I have 3 devices, for the sake of this question, I'll call them cmp1, cmp2, and cmp3. cmp1 is the device I am using, cmp2 is the jump server, and ...
Nico's user avatar
  • 1
1 vote
0 answers
38 views

Having trouble to set up SSH socks proxy [duplicate]

I am trying to set up a SSH socks tunnel for my personal use. When I am using this command ssh -D 1080 -N root@[server public IP] to start the proxy I am getting this error: open failed: ...
samadadi's user avatar
  • 111
2 votes
1 answer
544 views

How to create an SSH tunneling agent via HTTPS?

How to allow SSH when the network is blocked on all ports except HTTP and HTTPS? I'm curious to know how I can create a SSH tunnel which allows me to SSH via 443 and will work even after the server is ...
SSSK's user avatar
  • 21
0 votes
1 answer
187 views

How to use globbing in ssh config to connect via SSH tunnel?

I have configured ~/.ssh/config file on localhost: ### First jump host. Directly reachable Host ServerA Hostname 10.0.5.101 User jenny IdentityFile /home/admin/.ssh/serverA ### Second ...
Cruise5's user avatar
  • 73
0 votes
0 answers
153 views

why ssh Local Dynamic forward doesn't work on centos

I wanna to create a local dynamic forwarding in centos without using another machine as a proxy. so I used dynamic forward command and is working fine in one of my centos vms as vm1. ssh -fN -D 0.0.0....
mr.bug's user avatar
  • 101
6 votes
1 answer
3k views

How to ssh-copy-id through a jump-host? Something similar to the -J option with ssh command

I use a jump host to connect to the remote servers through SSH. I use the following linear command for the connection. ssh -J jumpuser@jumphost:2455 remoteuser@remotehost It works fine. But for new ...
Ajaib Singh's user avatar
1 vote
2 answers
677 views

Trouble setting up a simple SSH VPN to bypass a firewall

I have a small test network composed of two LANs connected via a firewall, with Linux hosts(containers). This firewall is set up to block certain websites from being accesed from within the B LAN, and ...
Lightsong's user avatar
0 votes
1 answer
458 views

SFTP with FileZilla through SSH tunnel with different public keys

I have setup an SSH tunnel to connect to an AWS transfer server through FileZilla ssh -i ~/bastion-server.pem -L 3111:vpce-id.eu-west-3.vpce.amazonaws.com:22 [email protected] Which is working fine. ...
Ydrab's user avatar
  • 11
0 votes
1 answer
645 views

SSH Tunnel to ssl-protected server fails when client connects through tunnel

I have a server that has two transport implementations, they are implemented on Qt. Secure and insecure. Secure transport uses QSslSocket, other QTCPSocket. One transport is secure, the other is not. ...
ivan biba's user avatar

1
2 3 4 5
18