Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #270061

Re: can't connect to server from outside LAN

From Tim Woodall <debianuser@woodall.me.uk>
Newsgroups linux.debian.user
Subject Re: can't connect to server from outside LAN
Date 2024-06-13 02:30 +0200
Message-ID <IOGvL-2uAh-1@gated-at.bofh.it> (permalink)
References <IOF6F-2tDI-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

can't connect to server from outside LAN Greg Marks <gtmarks@gmail.com> - 2024-06-13 01:00 +0200
  Re: can't connect to server from outside LAN David Christensen <dpchrist@holgerdanske.com> - 2024-06-13 01:40 +0200
  Re: can't connect to server from outside LAN Tim Woodall <debianuser@woodall.me.uk> - 2024-06-13 02:30 +0200
  Re: can't connect to server from outside LAN Jeffrey Walton <noloader@gmail.com> - 2024-06-13 10:20 +0200
  Re: can't connect to server from outside LAN Monte Milanuk <memilanuk@hushmail.com> - 2024-06-14 04:10 +0200

csiph-web