mirror of https://github.com/aldy505/dotfiles.git
13 lines
283 B
Plaintext
13 lines
283 B
Plaintext
|
#!/usr/bin/env julia
|
||
|
|
||
|
print("Target host (or user@host) >")
|
||
|
targethost = lowercase(readline())
|
||
|
|
||
|
print("\nFrom host[:port] > ")
|
||
|
fromhost = lowercase(readline())
|
||
|
|
||
|
print("\nTo host[:port] > ")
|
||
|
tohost = lowercase(readline())
|
||
|
print("\n")
|
||
|
|
||
|
run(`ssh -f -N $targethost -L $fromhost:$tohost`)
|