more tools
This commit is contained in:
5
derpcheck-ssh/README.md
Normal file
5
derpcheck-ssh/README.md
Normal 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
12
derpcheck-ssh/ssh.fish
Normal 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
|
||||
Reference in New Issue
Block a user