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

8 lines
114 B
Fish

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