Re: can't connect to server from outside LAN
On Wed, 12 Jun 2024, Greg Marks wrote:
I'm running a Debian server from my home with a static IP address,
with ssh configured to use key-based authentication rather than
password-based. As of a couple weeks ago, I have been unable to ssh to
my server from external locations. When I ssh from a laptop connected
to the wireless network on the same router as my home server, I do
successfully connect to the server. But when I ssh from an external
location, I get this error:
The problem began a couple weeks ago; previously (and for many years)
I had been able to ssh to my server without issue. The first time it
failed, I was using free wireless at an airport; I was able to ssh to my
server from the hotel that morning, and maybe, the first time I tried,
from the airport, but then subsequent ssh attempts from the airport
failed to connect. I mention this only because nothing had changed in
my server's configuration when this problem began.
This is a real problem for me, as a lot of my work involves sending
files via scp between work and home. Any suggestions about how to
troubleshoot and hopefully fix the problem will be greatly appreciated.
Run tcptraceroute to ports 22 and 80 to see ehere it's being blocked.
(or 443)
Depending on where it's blocked and why, possibly run sshd on a
different port. (or fix the firewall if it's controlled by you)
You can also run openvpn on 443 without breaking the webserver, which is
another workaround.
Reply to: