ssh: update local net detection to use nc

This commit is contained in:
Jason Swank
2026-01-12 12:25:18 -05:00
parent aef5a71ea1
commit 983a7abab8

View File

@@ -1,12 +1,12 @@
# local network -> local port
Match Host tuulikki.scalene.net exec "sudo ping -c 1 -W 1 -q 192.168.101.1"
Match Host tuulikki.scalene.net exec "nc -w 1 192.168.101.1 22"
Port 22
Host tuulikki.scalene.net
Port 22022
# local network -> local port
Match Host tonttu.scalene.net exec "sudo ping -c 1 -W 1 -q 192.168.101.1"
Match Host tonttu.scalene.net exec "nc -w 1 192.168.101.1 22"
Port 22
Host tonttu.scalene.net
@@ -16,7 +16,7 @@ Host www.scalene.net
User scalene
Port 22022
Match Host git.scalene.net exec "sudo ping -c 1 -W 1 -q 192.168.101.1"
Match Host git.scalene.net exec "nc -w 1 192.168.101.1 22"
Hostname tonttu.scalene.net
Host *.scalene.net