As of May 31, 2023, we have updated our Code of Conduct.

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
14 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
42 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
  • 101
0 votes
1 answer
49 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
0 answers
62 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
111 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
0 votes
0 answers
19 views

how to get ssh user traffic usage after session closed

I have openssh service on server side for tunneling and everything is OK. but i need to know how much a user downloaded from the server after every ssh session is closed. some guys suggested NetHogs ...
Mehrdad Dadvand's user avatar
2 votes
1 answer
82 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 user@remote-host.com -N An this is the current ...
fingerprints's user avatar
1 vote
2 answers
73 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
57 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
439 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
74 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
56 views

Borg-Backup failed with Command in authorized_keys behind a ssh-tunnel?

I setup a PoC for a pull backup with Borg Backup. In this example a client can only reach the backup server behind a proxy server. In this case the server where Borg Backup is running open a temporary ...
Wiesel's user avatar
  • 13
0 votes
0 answers
39 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
0 answers
109 views

limitting traffic usage per user in ssh

How can I limit ssh tunnel traffic usage per user ? Imagine you have 3 users who can connect to a server remotely and establish a ssh tunnel. How can you limit those users to use certain amount of ...
Meendufski's user avatar
0 votes
0 answers
23 views

Log Ssh Traffic per User [duplicate]

i use ubuntu server for ssh tunnel. i want to save log for ssh trafic per user. One of the server users is creating brute force attacks and I want to find that person. my os: ubuntu 18
alinn's user avatar
  • 1
0 votes
1 answer
185 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
99 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
38 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
0 votes
0 answers
199 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
  • 1
0 votes
0 answers
106 views

ssh tunnel high latency with multiple connections

hi I'm running an Ubuntu 20.04.5 server I'm using it for dynamic port forwarding kinda like a vpn but the problem is when I'm downloading something or there is multiple connections ping increases ...
Aria5641's user avatar
0 votes
0 answers
133 views

Why I can not set up bastion host tunnel to private EC2? Permission denied

I have bastion host and private EC2 instance in the same VPC. I am trying to set up bastion host tunnel to private EC2 [ec2-user@ip-10-0-1-130 ~]$ ssh -L 4000:10.0.0.146:22 ec2@54.227.127.12 ...
Richard Rublev's user avatar
0 votes
0 answers
29 views

ssh tunneling Connection timed out

I am trying to transfer all the incoming data in my server to another server In other words, I want to create a tunnel. i use this command in ubuntu: ssh -o GatewayPorts=true -L 80:0.0.0.0:80 root@...
Aref Solaimany's user avatar
0 votes
0 answers
343 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
0 answers
63 views

How to use Laravel Forge when SSH is blocked

I'am trying to use Laravel Forge in a Ubuntu 22.04 Server with SSH is blocked. Laravel Forge is a server management software which requires SSH to connect and manage. I found another similar service ...
SSSK's user avatar
  • 21
0 votes
1 answer
184 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
0 votes
0 answers
101 views

Using PasswordAuthentication yes in sshd config but password is not accepted during login

I tried to enable password authentication in CentOS 7 only for one user - auditor, by having this lines in my sshd.config (at the end of file): PubkeyAuthentication yes ChallengeResponseAuthentication ...
Ruslan Pylypiuk's user avatar
1 vote
0 answers
37 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
244 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
0 answers
65 views

Remote IP Port Forwarding with SSH but with firewall.cmd or IPTables now

The context: I'm working with Zabbix Server and need to monitor remote servers conected with VPN/SSL tunnel using OpenFortiVPN with Any-Any rule set by our external Datacenter Provider. Local IP of ...
renix's user avatar
  • 1
0 votes
1 answer
119 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
74 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
  • 1
1 vote
1 answer
807 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
374 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
0 answers
46 views

Is it possible to ssh directly between jump targets

Situation One jumphost: j Two target servers: s & d What (if it's possible) would I have to do on j, s & d to be able to on s do: scp -r foo d:/tmp/foo both s & d are reachable from j via ...
Nifle's user avatar
  • 374
0 votes
1 answer
223 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 ec2-user@x.x.x.x Which is working fine. ...
Ydrab's user avatar
  • 11
0 votes
1 answer
327 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 vote
0 answers
322 views

forward openconnect to internal proxy port by iptables

In my country sometimes government decides to limit access to the international internet. we only have access to sites and IPs inside the country, but data centers have more access to the internet. I ...
HosSeinM's user avatar
  • 111
1 vote
1 answer
190 views

OPENvpn server traffic not use sshuttle

I have 2 server (server A and server B). I installed Openvpn on server A and use OPENVPN CONNECT on my laptop and iphone (iOS) and all thing is ok. now when i check my ip in laptop and iOS show SERVER ...
amin's user avatar
  • 11
0 votes
1 answer
185 views

CentOS - SSH Tunneling: How to use another server's network

Assume two CentOS instances are connected to the internet‌ (Say server A: 5.200.200.5 and B: 46.30.7.20). I want to create a setup on servers in which all network traffic of server A passes through ...
Iman's user avatar
  • 113
0 votes
0 answers
78 views

How to restrict ssh users for tunneling access

I use Ki4a application for android to tunnel my phone traffic to my vps over ssh. but if i give my username and password and server ip and port to users to use this service, they can use some ...
Mehrdad Dadvand's user avatar
0 votes
0 answers
214 views

Access established tunnel in Windows host from WSL2

My company use Checkpoint Endpoint Security VPN then use Symantec Privileged Access Management to access certain servers, Symantec Privileged Access Management create SSH tunnel in Windows which I can ...
Adam's user avatar
  • 1
0 votes
0 answers
34 views

(How) can I initiate an ssh tunnel from both ends?

A is my laptop, at home. B is a server (AWS instance) under my control. C is a machine on my work network (no externally visible IP address) and it runs a VNC server, or NoMachine, or similar. The ...
jez's user avatar
  • 101
0 votes
0 answers
145 views

Ssh tunnel through an ssh tunnel

I have three machines which I will call localhost, host1 and host2 I need to be able to use localhost as a proxy server and the traffic sent to that server needs to go through host1 and then go to ...
mohsen mirzaei's user avatar
0 votes
0 answers
308 views

Connect Windows device to SMB share via SSH tunnel with WSL

I need to connect to an SMB share via SSH tunnel from a Windows computer. I have a tunnel set up in Putty to go from port 8445 to myserver:445. There is no way to specify an alternate port for the ...
Dan's user avatar
  • 1
0 votes
0 answers
14 views

My Debian VPS refuses to let me do a reverse SSH tunnel listening on all interfaces

I want to setup a ssh tunnel to a PC at home so that I can connect to a game server that will be running there. I have a VPS with public IP but that couldn't run the server. I followed these steps: ...
Tomáš Zato's user avatar
0 votes
0 answers
181 views

How to set up a secure forward proxy for a TCP port that is not HTTP or HTTPS?

I have a Mac Workstation, and I also have an EC2 instance (running Ubuntu Jammy) that we'll call my Proxy Box. I want my Mac Workstation to communicate out to the internet through my Proxy Box. ...
athome withagroovebox's user avatar
0 votes
0 answers
18 views

Forward port to serveur via dedicated machine

I have a mailserver M answering port 587 but only for a given authorized machine A. From my regular machine R, I want to contact M on 587 via A. I have full control over A and R, but but M. Can I ...
Jean-Philippe Pellet's user avatar
0 votes
2 answers
616 views

Can't add password to new ssh server host (Permission denied, please try again.)

i use ssh clie@127.2.0.1 to add new ssh server ip address as shown here for Mysql multi-devide connection. This is the first time i create ssh with openssh. But when i enter password (completely new ...
Jin jin's user avatar
0 votes
0 answers
208 views

reverse ssh tunnel issues

I'm trying to allow access to a remote network behind a 4g router. Since 4g dows not allow to bind ports from the router to the internal network, I'm trying to setup a reserve tunnel. But it's quite ...
Barium Scoorge's user avatar
1 vote
1 answer
405 views

Proxying connections in a QEMU-based VM through reverse ssh tunnel

I have the following setup: A QEMU virtual machine (VM1) running on a server (server a), which with it shares a private network and it uses the server's internet connection to access the internet. A ...
user1628056's user avatar

1
2 3 4 5
17