aboutsummaryrefslogtreecommitdiff
path: root/pkgs/yossh/examples/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/yossh/examples/test.lua')
-rw-r--r--pkgs/yossh/examples/test.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/yossh/examples/test.lua b/pkgs/yossh/examples/test.lua
new file mode 100644
index 0000000..a594305
--- /dev/null
+++ b/pkgs/yossh/examples/test.lua
@@ -0,0 +1,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})