common/home/fish/functions/ssh-forward.fish

8 lines
124 B
Fish
Raw Permalink Normal View History

#!/bin/fish
function ssh-forward
set HOST $argv[1]
set PORT $argv[2]
2022-12-07 22:26:28 -08:00
autossh -N -M 0 -L $PORT:localhost:$PORT $HOST
end