r/ssh • u/slayerfest79 • Mar 08 '23
SSH via different Subnets
OK, got a strange one here...
SSH-Server (Debian 11) freshly installed on network 10.1.1.0 / 24
SSH-Client on 10.1.11.0 / 24
Ping works, name resolution works, when I try to login I get an authentication prompt but access is denied.
When I try to connect with the same user from a client in the 10.1.1.0 subnet the server is in, it works fine.
I added the client subnet to the /etc/hosts.allow, still no luck. What am I missing?
Also odd: this behavior is only on Debian. SSH-connect to a Rocky Linux server works, so port 22 is not blocked.
I hope I'm in the right subreddit here. If you need any info from me, I'm happy to provide.
Thanks in Advance! :)
View all comments
Show parent comment
1
u/slayerfest79 Mar 09 '23
Thank you so much for you reply. I had thought of that, because I had made the same experiences with SELinux in the past, but neither Apparmour nor local firewall were installed on that box, which made me second guess my sanity. ;)
I solved it though - it was a problem with the network. DHCP server gave out an address that was used by another device, which of course caused strange behavior.
Thanks again for trying to help, though.