Op vrijdag 29 juli 2022 08:05:46 CEST schreef Bob Williams:
Operating system Tumbleweed; desktop KDE Plasma.
I can ssh into my desktop machine from my phone (using JuiceSSH) using the local LAN address 192.168.178.48
When I try to ssh to my ISP static address, I get 'no route to host'. This also happens to a colleague trying to connect from another city (ie. from outside my LAN).
I have moved my ssh port to a higher number, no longer 22. This is set in /etc/ssh/sshd_config and /etc/services. The port is forwarded to this machine in my router (Fritz!Box 7530).
I also have a Fritz!Box and I have a port forward on it from a few higher ports to port 22 on a few systems in my LAN. So I don't need to specify a port when I use the local 192.168 addresses. Also the firewalld specifications are standard and open the ssh ports on these systems. I can use "ssh -p xx user@dns_name" to access these systems, both from my systems in my LAN as from systems somewhere in the internet. The main use from outside is using "rsync -e 'ssh -p xxx' folder user@dns_name:/folder_remote/" Occasionally I also experience error messages like "no route to host", but I simply test on return code and repeat the command. Within 10 times it will succeed. Lately, due to another problem, I needed to investigate access problems and I used "sudo /sbin/traceroute -T -p x -m y -n dns_name". With -T you send TCP- SYN, -p x, x is the port you try to access and which has a listener, -m y limits the number of packets send, default is 30 and -n gives only IP addresses. This might give you some indication where it gets stuck. On my system to Fritz!Box, via dns_name (global IP address), and back to my system, qq is the port forwarded to my port 22. $ sudo /sbin/traceroute -T -p qq -m 5 -n dns_name traceroute to dns_name (149.143.xx.yy), 5 hops max, 60 byte packets 1 192.168.178.1 0.603 ms 0.599 ms 0.630 ms 2 149.143.xx.yy 3.360 ms 3.321 ms 3.310 ms 3 149.143.xx.yy 5.029 ms 4.990 ms 5.025 ms As you see it gets a reply after 3 hops. -- fr.gr. member openSUSE Freek de Kruijf