ssh: update local net detection to use nc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user