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

8 lines
124 B
Fish

#!/bin/fish
function ssh-forward
set HOST $argv[1]
set PORT $argv[2]
autossh -N -M 0 -L $PORT:localhost:$PORT $HOST
end