Questions tagged [ssh-tunnel]
An SSH tunnel leverages the SSH protocol to transport unencrypted data through an encrypted connection.
854
questions
0
votes
0
answers
30
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 ...
1
vote
1
answer
32
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 ...
0
votes
0
answers
61
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 ...
0
votes
0
answers
41
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
...
0
votes
1
answer
99
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 &...
0
votes
1
answer
63
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 -> ...
0
votes
0
answers
17
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 ...
0
votes
0
answers
140
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) ...
0
votes
1
answer
391
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 ...
0
votes
1
answer
391
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 ...
0
votes
1
answer
135
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 ...
0
votes
1
answer
635
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 ...
0
votes
0
answers
309
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.
...
2
votes
1
answer
654
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 --> ...
-2
votes
2
answers
92
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 ...
0
votes
0
answers
232
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 ...
0
votes
1
answer
210
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 ...
0
votes
0
answers
124
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 ...
0
votes
0
answers
203
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 ...
0
votes
0
answers
70
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 ...
0
votes
1
answer
44
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:...
0
votes
0
answers
136
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 ...
0
votes
1
answer
211
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 ...
0
votes
1
answer
69
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:/...
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 ...
-1
votes
2
answers
1k
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 ...
0
votes
0
answers
107
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 ...
2
votes
1
answer
652
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 ...
1
vote
2
answers
217
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/...
0
votes
0
answers
192
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 ...
1
vote
2
answers
3k
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:...
2
votes
1
answer
394
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 ...
0
votes
0
answers
51
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 ...
0
votes
1
answer
427
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 ...
0
votes
0
answers
134
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 ...
0
votes
0
answers
102
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 ...
1
vote
0
answers
322
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 ...
0
votes
0
answers
468
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 ...
0
votes
1
answer
488
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 ...
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: ...
2
votes
1
answer
491
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 ...
0
votes
1
answer
172
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 ...
0
votes
0
answers
140
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....
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 ...
1
vote
2
answers
600
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 ...
0
votes
1
answer
407
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.
...
0
votes
1
answer
594
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.
...
1
vote
0
answers
528
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 ...
2
votes
1
answer
286
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 ...
0
votes
1
answer
305
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 ...