Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
1k views

How to route connections to a remote machine to a port on my local machine

We have existing SQL Connection strings like "tcp:aws.server.address,1433". We can no longer connect to aws.server.address directly, and instead have to go through a jump server. WITHOUT MODIFYING ...
Triynko's user avatar
  • 3,294
0 votes
1 answer
961 views

Can't connect publically access (forwarded) SSH on archlinux server

I'm experiencing problems wanting to access my SSH server over my public IPv4 address, in my local network everything works fine though. The connection would work as expected locally: [alex@...
soft_nivea_42's user avatar
0 votes
1 answer
2k views

SSH asking user password when connecting on a port

I have a computer C SSH reverse tunnelled to server B at port X. Now I want to connect from computer A to computer C via B at port X. When I do normal SSH from computer A to B as: ssh -i KEYA ...
gapc311's user avatar
  • 101
0 votes
0 answers
2k views

SSH port forwarding a UDP port from Windows

I discovered the possibility of forwarding ports through SSH after I sticked up with port forwarding which didn't work out because my provider has DS Lite. Using ssh -R 8080:localhost:8080 <...
Aarivex's user avatar
  • 41
1 vote
1 answer
919 views

SSH Port Forwarding on a Linksys EA7500

I don't care about moving SSH off of port 22. This is my first time doing anything with SSH, if there's a better way, let me know. The end goal is to be able to access my server remotely. I have a ...
amyiris's user avatar
  • 27
0 votes
0 answers
196 views

SSH Port Forwarding on a Linksys EA7500 - how would I go about setting it up?

Trying to setup SSH ability to an Ubuntu 19.10 server.... I have an EA7500. I need to know what to put for start/end port and device ip#. Local IP is 192.169.1.142. For context, here's a link to the ...
amyiris's user avatar
  • 27
2 votes
1 answer
2k views

SSH tunnel server can't close listen port when client unexpected close

First I know @TCZ asked this question before: How to release ports on the SSH server when a reverse ssh tunnel disconnects abruptly/uncleanly? But I think @clement's answer is not quite elegance, ...
Tim Cheng's user avatar
1 vote
1 answer
5k views

Forwarding Port 22 for SSH

I'm trying to forward port 22 so I can SSH into my PC from a different network but it doesn't seem to be working. I get the classic "Connection refused" error. I can do ssh mihkel@my_public_ip from ...
Mihkel's user avatar
  • 193
1 vote
1 answer
1k views

OpenWRT port-forwarding doesn't work for me

I'm trying to forward a few ports to a server that I run, mainly port 80, 443, and 22. Right now I'm just trying to get a single port forward working but no dice. The firewall on the server accepts ...
dpistachio's user avatar
0 votes
2 answers
1k views

freenas sshd port forward open failed: administratively prohibited

I have a freenas server with an ssh port open to the internet. I want to access a server within the network the nas is in, so I used an ssh port forward like this: ssh -N -L 8080:host:80 root@freenas....
Nemo64's user avatar
  • 101
0 votes
2 answers
835 views

Forwarding internet access to a remote machine

Unlike Forwarding Internet connection via SSH to a Linux console , my REMOTE machine is not behind a firewall. REMOTE (192.168.12.34) A machine that's connected locally only to the SERVER and a ...
alvas's user avatar
  • 135
0 votes
2 answers
2k views

Problems connecting to server (ssh, no route to host)

I have a home server that's been working fine for the past few months. For the network configuration, I've assigned it a static IP, and various ports have been forwarded, e.g. 22, 80, 8080, 443, 5904, ...
rygon's user avatar
  • 1
0 votes
1 answer
38 views

Determine services with sub-addresses

Context I'm trying to improve my working workflow. Currently I have a desktop (that, basically, has a GPU) and a notebook. I want to exploit the desktop even when I'm working with the notebook ...
Luca's user avatar
  • 113
1 vote
0 answers
379 views

Strange slow down of TCP connection on X11 forward

I have a home computer H (Linux), a work computer W (Mac OS X), and a public server S (same Linux as H) with IP 11.22.33.44. As H and W are all behind NAT, I use autossh to connect them both to S and ...
Sunfucius's user avatar
0 votes
1 answer
1k views

How to set up SSH in a local Wi-Fi network

I have recently replaced a router at home. The old one was D-Link DIR-300, the new one is Keenetic Lite. There are two computers at home, let's call them desktop and laptop. The problem is, before I ...
wrwt's user avatar
  • 535
2 votes
1 answer
3k views

SSH ExitOnForwardFailure doesn't exit if port fails after successfully being established

I've been using SSH to establish some remote port forwards. ssh -NT -o ServerAliveInterval=20 -o ExitOnForwardFailure=yes -o ConnectTimeout=10 -R 22001:localhost:22 -R 59001:localhost:5900 user001@...
Clayton Mills's user avatar
0 votes
1 answer
1k views

Bidirectional SSH tunnel

I want to connect to Server A which is behind a NAT and a firewall which blocks all incoming connections. I want to access port 9000. In my office I have a public IP and control of the router. My ...
Elliott B's user avatar
  • 1,265
-1 votes
1 answer
40 views

How does DNS know which machine on my router to talk to?

I have a server that is accessible via ssh at foo.university.edu, and my workstation is on the same router (which has a decent hardware firewall). When I check my workstation's public IP, I find it is ...
barriboy's user avatar
  • 111
2 votes
1 answer
3k views

TP Link router - Port forwarding not working

I have a TP-Link router and I have followed the appropriate steps to forward the port 22 to use an SSH connection on the remote machine. I forwarded the port 22 on the machine's LAN IP. But when I ...
Tanmay Bhatnagar's user avatar
0 votes
1 answer
1k views

Expose a mysql server over an ssh tunnel

I've used remote and local forwarding with succes in the past, but this time I can't get a setup to work. What I'm trying to achieve: Make my sql server publicly reachable so the Google CloudSql can ...
oneindelijk's user avatar
2 votes
0 answers
2k views

ssh local port forwarding not working [duplicate]

My goal: I have a computer in a location A, let's call it host-A. I have a computer in a location B (host-B) running an ssh server, and I can ssh from host-A into host-B. I want to access a website ...
Gru-gru's user avatar
  • 121
2 votes
1 answer
2k views

Enable ssh to my computer from outside through Port forwarding

Update It's working actually, I had to adjust my local IP address, which is constantly changing. So sorry for the inconvenience. I can ssh to my computer1 from my computer2 on my local network, using ...
Yoric's user avatar
  • 459
2 votes
1 answer
3k views

SSH remote forwarded port doesn't accept external connection (even with `GetewayPorts yes`)

I am trying to set a reverse/remote SSH port forward, using this schema where the Apache Linux server forwards the port 80 to the SSH server. So On the SSH server I changed the configuration to ...
Vincent Diallo-Nort's user avatar
0 votes
1 answer
93 views

ssh: port forwarding doest work for some ports

I am connecting from windows computer to linux server with this command from cygwin: ssh -v -L 2181:127.0.0.1:2181 -L 9870:217.0.0.1:9870 -L 9092:127.0.0.1:9092 -L 8088:127.0.0.1:8088 -L 8080:127.0.0....
stiv's user avatar
  • 77
1 vote
2 answers
1k views

Doing an SSH reverse port forward without GatewayPorts enabled

I have two machines, m1 and m2, and machine m2 can connect to m1 using SSH. There is a machine m1bis that can only connect to m1, and there is a machine m2bis to which only m2 can connect. I would ...
a3nm's user avatar
  • 1,245
1 vote
0 answers
461 views

Open port for reverse ssh tunnel

I have opened a reverse SSH tunnel from machine A (Windows) sitting behind a NAT to machine B (Ubuntu) on port 4000. I can access my service running on machine A from machine B at the address ...
SkyNT's user avatar
  • 967
1 vote
1 answer
2k views

Trying to set up port forwarding for SSH on my router

Recently I got a Raspberry Pi 3 Model B+. I setup SSH on my device successfully and was able to access it throughout my local network. I have decided that it would be convenient to have the ability to ...
Joshua's user avatar
  • 113
1 vote
1 answer
1k views

SSH into device attached to another router

I saw this questionwhich looks kind of related, but I'm not sure as the answers are too confusing. Basically, I want to SSH into my Raspberry Pi from my laptop. Eventually I want to have the Pi ...
audiFanatic's user avatar
3 votes
0 answers
405 views

Can’t access my Mac’s SSH port outside of my home network. Forwarding rule is set. What might be wrong?

As the title said, I am trying to set my mac as a ssh server. My mac's local IP is 192.168.0.21 and my external IP (router IP) is 98.202.108.***. I went to the sharing and enabled the Remote Login. ...
Di Miao's user avatar
  • 131
1 vote
2 answers
3k views

Convert localhost listening port to remotely listening port in Windows

I use Psiphon to circumvent censorship and it runs both HTTP and SOCKS proxy listening in localhost. I need to use the service from another machine in the network. As the Psiphon's listening port are ...
verstappen_doodle's user avatar

15 30 50 per page