more tools

This commit is contained in:
2025-08-29 09:40:20 +03:00
parent 4346b838ed
commit 4448764bca
15 changed files with 513 additions and 24 deletions

5
derpcheck-ssh/README.md Normal file
View File

@@ -0,0 +1,5 @@
# server-toolset
## derpcheck-ssh
See connection details while SSH'ing to a remote with Tailscale.

12
derpcheck-ssh/ssh.fish Normal file
View File

@@ -0,0 +1,12 @@
function ssh --wraps ssh
if test (count $argv) -eq 1
set -l target_host $argv[1]
set -l ts_status (tailscale status | grep -i -- "$target_host")
if test -n "$ts_status"
echo "$ts_status"
echo ""
end
end
command ssh $argv
end