I have a remote headless system (running bullseye, will be updating to bookworm when I'm next there) that can connect to some systems using
ssh but not to others (to which I can connect from everywhere else).
It also can't ping the systems which it can't connect ssh to.
On Wed, Jan 22, 2025 at 13:29:41 +0000, Chris Green wrote:
I have a remote headless system (running bullseye, will be updating to bookworm when I'm next there) that can connect to some systems using
ssh but not to others (to which I can connect from everywhere else).
What *actually* happens when you try? Show us the command you're
running and its full output.
If you need more details, try adding the -v option when you ssh.
It also can't ping the systems which it can't connect ssh to.
Again, seeing the *error message* from ping would be helpful.
I have a remote headless system (running bullseye, will be updating to bookworm when I'm next there) that can connect to some systems using
ssh but not to others (to which I can connect from everywhere else).
It also can't ping the systems which it can't connect ssh to.
I can't see any pattern in the systems to which it can connect or
those which it can't connect to. It's connected via 4G so it's
CGNATted. I connect to it (using ssh) via a remote ssh tunnel that it
sets up when booted.
It gets the correct IP address for all 'my' systems that run an ssh
server and I can cannect to all these systems from my home desktop and
laptop machines using ssh.
Does anyone have any ideas on how to diagnose its failure to connect
to all of 'my' systems.
Yes, that would be totally useful. As has been stated in this
list last days, ping actually does two things for you:
- resolve the host's name to an IP address
- check connectivity to that host
On Wed, Jan 22, 2025 at 14:56:54 +0100, tomas@tuxteam.de wrote:
Yes, that would be totally useful. As has been stated in this
list last days, ping actually does two things for you:
- resolve the host's name to an IP address
- check connectivity to that host
Well, three really. It resolves the argument to an IP address if it
wasn't already one. It sends ICMP packets to that IP address.
It listens for responses.
It's not possible to differentiate the various failure states using ping alone (at least not from a single host), but it's a good starting point.
On Wed, Jan 22, 2025 at 01:29:41PM +0000, Chris Green wrote:
I have a remote headless system (running bullseye, will be updating to bookworm when I'm next there) that can connect to some systems using
ssh but not to others (to which I can connect from everywhere else).
It also can't ping the systems which it can't connect ssh to.
I can't see any pattern in the systems to which it can connect or
those which it can't connect to. It's connected via 4G so it's
CGNATted. I connect to it (using ssh) via a remote ssh tunnel that it
sets up when booted.
It gets the correct IP address for all 'my' systems that run an ssh
server and I can cannect to all these systems from my home desktop and laptop machines using ssh.
Does anyone have any ideas on how to diagnose its failure to connect
to all of 'my' systems.
How many network interfaces have you got ? I suspect one (+ loopback).
What do you get when you run traceroute to something that you cannot connect to ?
What are your routing tables ?
Do you have a firewall ?
Is it an IPv4/IPv6 thing ? So that you can connect to systems over IPv4 but not
IPv6 ?
On Wed, Jan 22, 2025 at 13:29:41 +0000, Chris Green wrote:
I have a remote headless system (running bullseye, will be updating to bookworm when I'm next there) that can connect to some systems using
ssh but not to others (to which I can connect from everywhere else).
What *actually* happens when you try? Show us the command you're
running and its full output.
If you need more details, try adding the -v option when you ssh.
It also can't ping the systems which it can't connect ssh to.
Again, seeing the *error message* from ping would be helpful.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 169:23:29 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,552 |