aboutsummaryrefslogtreecommitdiff
path: root/pkgs/yossh/examples/test.lua
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-03 16:45:26 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-03 16:45:26 -0600
commitc29a14135736c2516bb5d951e6e97dc8143598db (patch)
tree925628abfe934e3ea2cfd4a70357f8f9b5acb474 /pkgs/yossh/examples/test.lua
parentce2cc260710f801c10302847796b931f7ed19709 (diff)
changes
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})