sshocker
sshocker copied to clipboard
ssh + reverse sshfs + port forwarder, in Docker-like CLI (predecessor of Lima)
It makes it possible to have user ID remapped between local and remote.
It needs to resolve the target, before waiting for it to appear in mount... For instance when `/mnt` is a symbolic link to `/var/mnt` like in CoreOS
Like using the `-N` option to `ssh` ? Current workaround is running `sleep`
alternative Title: `exec.Command with ssh doesn't work when there are spaces in args` (I'm pondering how to best fix this for one of my apps too :) ) ``` sven@x1carbon:/tmp/space...
atm, it waits for a timeout ``` sven@x1carbon:/tmp/space path$ ./sshocker -p 8080:80 -v .:/tmp/sshfs xeon bash: sshfs: command not found WARN[0031] failed to confirm whether /tmp/sshfs [remote] is successfully mounted...
https://github.com/AkihiroSuda/sshocker/blob/3144baeef5209e6cb6428a0cd48aa8fb26a2218e/pkg/reversesshfs/reversesshfs.go#L74-L81 We should use https://pkg.go.dev/github.com/pkg/[email protected]#NewRequestServer to prevent the remote host from accessing unexpected local directories (if `sshfs` had a bug)
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.19.2 to 2.20.2. Release notes Sourced from github.com/urfave/cli/v2's releases. v2.20.2 What's Changed Fix:(issue_1206) Default value shouldnt depend on env variable or val… by @dearchap in urfave/cli#1528 Full...
Currently AFAIK `sshocker` is only looking for the `sftp-server` provided by cygwin, which means it won't work if we don't have cygwin installed, since windows also provides an openSSH server,...
Currently I just made a copy/paste version, that was called sudoExecuteScript It would be nice if this feature was available through the regular functions? ```diff @@ -1,8 +1,8 @@ -//...
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.27.4 to 2.27.5. Release notes Sourced from github.com/urfave/cli/v2's releases. v2.27.5 What's Changed docs(flag): add UseShortOptionHandling description by @BlackHole1 in urfave/cli#1956 [Backport] Fix: Use $0 env var to...