aboutsummaryrefslogtreecommitdiff
path: root/pkgs/yossh/examples/test.lua
blob: a5943053ad59c9515007520163b1c4df388cb206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
yoshi = dofile'yoshi.lua'

yoshi.hosts["you"] = function()
  return yoshi.ssh{
    HostName = "192.168.50.2",
    DynamicForward = 7320,
    Port = 27
  }
end

yoshi.hosts["me"] = function()
  return yoshi.ssh{
    HostName = "test.local",
    ProxyJump = "jumper@you"
  }
end

yoshi.run(arg, {dry_run = true})