All Questions
Tagged with ssh port-forwarding
428
questions
0
votes
1
answer
29
views
SSH timeout over WAN
I have an openssh server set up on my homelab that I want to be able to connect to remotely. I have forwarded the port and tried to connect to it on LAN using the public ip of my homelab. However I ...
0
votes
0
answers
77
views
SSH Connection timed-out connecting to a VM via port-forwarding on Windows11
I am on an issue since a while, getting urgent, and not super confident in the Windows sphere. I have a desktop at work that functions as my test desktop. To try software, etc, I installed Hyper-V and ...
0
votes
0
answers
84
views
How to use ssh x11 forwarding on Windows?
I am running XServer by VcXsrv on Windows. Here is my VcXsrv configuration, and I believe it should be listening on :0.0, which is port :6000.
<?xml version="1.0" encoding="UTF-8&...
0
votes
0
answers
115
views
Why did my ssh port forwarding not work?
I have this port forwarding set up at my home:
Fedora 39 server with sshd set up and firewall disabled.
Linksys WRT32X router using OpenWRT 23.05.x connected to a cable modem (routing capable,
but ...
0
votes
1
answer
150
views
How to stop ufw-firewall preventing me to ssh into another server?
I have a weird issue on Ubuntu 22.4.4 LTS.
Using the ufw firewall, I allowed SSH/Port 22, HTTP and HTTPS. I can successfully login via SSH into my server. However, when I am logged in on the server, ...
-1
votes
1
answer
128
views
What will be the local IP and remote IP while doing port forwarding in airtel Router?
I bought an unmanaged cloud server from the hosting company. My cloud Server IP is 50.21.182.217. It is hosted with Plesk so PORT is 8443. My local IP is 192.168.1.6 and my Router IP is 122.161.240.22....
1
vote
1
answer
35
views
Why in port forwarding in VirtualBox I can't set both equal host port and guest port?
Name: Anything you want. example for ssh, say “ssh"
Protocol: Type of protocol [ for ssh: TCP ]
Host IP: provide hostname from which host you want to connect to [ over here: 127.0.0.1 ]
Host Port:...
0
votes
0
answers
31
views
Setup Port Forwarding
Please help me setup a port forwarding.
iMac ➜ Raspberry Pi ➜ My PC using Termius
I know my RaspberryPi's public IP, but not my iMac's one.
The Raspberry Pi is in the same house as I'm in, and my iMac ...
0
votes
0
answers
60
views
Please, concretely, how to setup port forwarding to use remotely my iMac over SSH, with Raspberry Pi
I have a Raspberry Pi and want to use remotely my iMac.
I am in another house, and want to use it over SSH. I have Termius too. I want to create a tunnel where the iMac connects to Raspberry Pi and I ...
0
votes
2
answers
217
views
Port forwarding gets me to router login page
I have port forwarding configured on a Teltonika RUT240.
The plan is to connect to a device on the local network. Connecting to the public IP (static IP from ISP) only gets me to the router's web page....
0
votes
0
answers
45
views
setup up ssh connection with 3 Ubuntu machines to bypass a firewall
I have 3 machines, here are the IP addresses of each of them with their ssh port :
first device IP: 192.168.1.2
second device IP" 192.168.1.3 port 22822
third device IP: 192.168.1.4 port 22
I ...
0
votes
0
answers
180
views
How to X11 forward after multi hopping in SSH?
I have the following SSH flow: root@HostA -> root@HostB -> root@HostC -> user@HostD
I want to do X11 forwarding for Firefox on HostD all the way back to HostA, since A, B and C don't have ...
0
votes
0
answers
75
views
There is better solution than simple port forwarding from my router to my internal system?
If I forward a port from my router to one of my internal system's ssh port, I start to get messages from the system of attempts with invalid password, invalid user, etc. I assume that someone is ...
1
vote
1
answer
133
views
Port Forwarding is not working [closed]
I want to be able to connect to my Raspberry Pi either via ssh or through connection like server-client from WAN which I think I need to do with port forwarding which is what I'm having problems with.
...
0
votes
1
answer
210
views
Connecting to a remote server without it's IP and using a relay server
I have 3 systems as follows:
Client A: IP not disclosed
Client B: IP not disclosed
Server: some public ip
Client C: IP not disclosed
So, what i'm trying to do is, I want Client C to connect to the ...
0
votes
0
answers
71
views
Virtualbox Port-Forwarding Does nothing when SSH connection is attempted
I recently created an Ubuntu 22.04 VM with virtualbox. Its network setup consists of a Host-Only Network & and a NAT. I recently set it up to allow ssh connections on the private network through ...
0
votes
3
answers
189
views
Start port forwarding between two remote machines from a third computer
Suppose I have a computer compute_mine. I have ssh access to two remote computers compute_remote_1 and compute_remote_2. I would like to forward a port from compute_remote_1 to compute_remote_2. ...
1
vote
1
answer
198
views
Can I use ssh to map a local port to a remote server?
I have the situation that I need to set a port on my laptop (which is on a local net, behind a firewall) open to the general internet, temporarily for testing purposes. Let's call this machine "...
0
votes
1
answer
204
views
Router accessible by local devices but not from the Internet using its DDNS hostname
I am attempting to setup port-forwarding on my Asus router so that I can, among other things, SSH to one device connected to LAN from the Internet.
Since my Internet provider doesn't provide me with a ...
0
votes
0
answers
46
views
SSH forwarding not terminating on server upon client hard reboot
I have a server with SSHD to which I connect with remote SSH client using the command (on startup):
while true
do
ssh user@server -N \
-o "ServerAliveInterval=60" \
-o &...
0
votes
0
answers
83
views
ssh from external ip address not working
I am trying to ssh into my wsl from a remote machine.
I have setup the ssh forwarding from Windows to wsl. I can now ssh into my wsl through my internal IP address 192.168.2.101
I have setup the ...
0
votes
1
answer
239
views
Cannot ssh into self hosted server from public IP
I set up a server to self host and cannot ssh into it, and I'm having trouble debugging the issue. This is the error I get when I run ssh with verbose logging:
OpenSSH_9.4p1, OpenSSL 3.1.2 1 Aug 2023
...
0
votes
1
answer
51
views
close ssh connection with keygen
I've established a port forwarding using an ssh connection to my remote server using keygen as codes below :
ssh-keygen -t rsa and ssh-copy-id -i ~/.ssh/id_rsa.pub root@IP
ssh -N -R 0.0.0.0:53407:...
0
votes
1
answer
195
views
Can I establish port forwarding with a remote server behind a load balancer?
I have an application on a remote development server that is running two separate nodes, each on a different port. Between those nodes and the actual front end is a load balancer. The problem I'm ...
0
votes
0
answers
264
views
SSH remote forwarding fails for root user
I'm using remote forwarding for Sublime (rmate) using the following configuration in my (local) .ssh/config file:
Host host
User user
Hostname hostname
RemoteForward /home/user/.rmate.socket localhost:...
0
votes
0
answers
68
views
How can I port bind an interactive transient PBS session to the head node and then port bind the head node to my local machine?
The short of it: How can I port bind an interactive transient PBS session to the head node and then port bind the head node to my local machine? So, a chain of port bind of three machines.
More ...
0
votes
2
answers
703
views
I enabled port-forwarding on my router, now how do I "log in" to it with SSH?
I have a server on my home network, and I'd like to be able to remotely access it via SSH. So I enabled port forwarding on my router administration panel, to forward all TCP/UDP requests to port 22 to ...
1
vote
0
answers
158
views
How to disable local port forwarding only in SSH authorized_keys file?
This question is related to this one, here, but the accepted answer for that question does not actually answer the question and is inaccurate, as pointed out in this comment.
Basically, I have a ...
-1
votes
1
answer
394
views
How can i set up my SSH tunnel connection for run http request from local PC
My remote server have access to specific third party API. But my local PC doesn't. I can do third party http request from server nodejs backend:
await axios.post("http://111.111.111.111:8810"...
0
votes
3
answers
2k
views
Forward x11 works but not into Xypher "Can't open display: localhost:11.0"
On the local network, I have a remote (headless) ubuntu server. I'd like to access the
desktop on that machine, but I really don't want to install vnc, etc... I already have
lxde so why can't I ...
0
votes
0
answers
116
views
DynamicDNS SSH Forwarding: Authentication Not Working
I've just setup dynamic DNS, in an effort to be able to access my home desktop from anywhere. This seems to be set up correctly, and as testing I've forwarded port 22 on my router to port 22 on my ...
0
votes
1
answer
2k
views
How to correct ssh local port forwarding saying port is already in use?
I am running a web server that exposes a website locally on the client machine at dev.local.company.com:3888 and I want to access that website on a separate machine on the local network over ssh. Both ...
1
vote
1
answer
781
views
Open terminal to locally forwarded port
I am using ssh to access a remote server via local port forwarding. This however being the first time I'm using ssh, I'm not quite familiar with it. I am using this command
ssh -N -i ~/.ssh/id_rsa -L ...
1
vote
0
answers
322
views
Can't access my Node.js server with external IP address
Here are the steps I've gone through to setup my server.
I've bought an Orange Pi 5, installed Debian from their website and started to configure it.
I ordered static IP address and in Firewall/...
0
votes
1
answer
388
views
ssh port forwarding: cannot tunnel to a third server
I want to connect to a server (C; ip=1.0.0.3) from my desktop (A;ip=1.0.0.1) via another server (B; 1.0.0.2). I must need port forwarding to run ipython notebook remotely on server C from my desktop ...
2
votes
1
answer
820
views
Is it possible to port-forward to a Unix domain socket using the permissions of a different user on the target host?
Consider a server X, which users A and B.
I have permissions to ssh as user A, and to sudo as user B, but I do not have permissions to ssh as user B.
There is a Unix domain socket with path /path/to/...
2
votes
1
answer
300
views
How can I define socks proxy (`ssh -D`) in `~/.ssh/config` file?
I now run this to have a socks proxy:
ssh -D1111 my_server
I want to add it to my .ssh/config file to ProxyCommand so that whenever I run ssh my_server, I can have a socks proxy.
I searched but did ...
0
votes
0
answers
548
views
Trying to Connect(ssh) to Vagrant Machine on Windows from WSL
I try to ssh to the vagrant machine running on my Windows 10 host from the WSL of that same machine. The port forwarding is the default one, that being port 22 of Vagrant machine is forwarded to port ...
0
votes
0
answers
188
views
OpenSSH client: disable warning when X forwarding fails
For OpenSSH clients, X forwarding may be configured for all connection to any SSH server, as follows, in ~/.ssh/config:
ForwardX11 yes
Some servers are not configured for support of X forwarding, ...
1
vote
1
answer
632
views
ssh tunneling public key error
I'm trying to setup ssh port tunneling. I am setup with my public key on the remote machine. I can login to the remote like this...
ssh <name>@<address>
No problem.
I'm trying to forward ...
0
votes
2
answers
1k
views
How to access the SSH through another server
I have a Linux server (A) (With IP X.X.X.X) that's accept SSH (in port X) only from another Linux server (B) with specific IP Y.Y.Y.Y. Obviously, if I login in the server B (From whatever IP) I can ...
0
votes
0
answers
52
views
How i can allow/activate diffrent port for SSH from only one IP?
In my system, servers use different ports for SSH. But one of the applications can connect servers with only port 22 for SSH. I can't change the servers' ssh port because of some security rules. Is it ...
0
votes
1
answer
1k
views
Failed to connect to port when trying to use SSH remote forwarding
I am learning how to do SSH remote forwarding and I am trying to practice that using two virtual machines on my computer. One is runs Kali and hosts an apache web server configured to listen on port ...
0
votes
1
answer
435
views
How to local forward multiple hops?
I'm trying to access web server running on serverB and port 10010 from host machine (my PC). In short, the server is running on serverB's localhost:10010.
To do that,
I have to local forward from ...
1
vote
1
answer
534
views
Remote port forwarding through ssh stopped working on windows server 2019 after update
Before the recent update the following command worked correctly and opened a ssh tunnel:
ssh -R "remote-port:localhost:local-port" remote-ip
which I could test by running locally
ncat -l ...
2
votes
1
answer
1k
views
Putty Remote portforwarding not reaching localhost
I'm doing a reverse port forward with putty from my local machine to a server,
I want every request on port 8002 to be forwarded to my local machine.
I set the destination port on the tunnel tab to ...
1
vote
1
answer
107
views
Is it possible to label port in SSH port forwarding?
Is it possible to label port and use the label name instead of the port number in SSH port forwarding?
For example, a normal ssh port forwarding would be:
ssh -L 5432:localhost:5432 remotepc
ssh -L ...
0
votes
1
answer
951
views
Connect to local virtual machine through remote server
My goal is to access a Ubuntu Server that is running in a local VirtualBox publicly via the internet (both SSH on port 22 and HTTP on port 80).
For now, I planned to do it like this:
I set up the ...
1
vote
2
answers
3k
views
Accessing SSH on multiple devices connected to the same home-router (Port-forwarding solution)
So, I have multiple devices connected to my router via ethernet cables. All devices have some kind of SSH-service running and are reachable over the WAN/Internet via "ssh [email protected]&...
1
vote
2
answers
2k
views
sftp/ssh connection works on network but not from outside
Okay, this is a weird one. I normally don't ask questions here, but I'm about 5 hours in and my brain is melting.
I have set up a sftp server on my network with the following attributes in my ...