|
|
|
|
|
by mreithub
3124 days ago
|
|
Hi, Manuel from ondevice here. Here's a rough explanation: - ondevice makes use of `ssh`'s `-oProxyCommand`, which makes ssh send its protocol data to a command's stdin and expect the responses on its stdout (you can use that for example to get around certain proxy servers using `nc`) - `ondevice ssh` basically executes `ssh -oProxyCommand=ondevice pipe %h $@` (there's a bit more to it, but that's the gist)
- internally `ondevice pipe` creates a websocket connection to the ondevice API servers, who in turn tell the device (where `ondevice daemon` is running) that there's a connection incoming. pretty much the same goes for `ondevice rsync` (and the - not yet released... - `scp` and `sftp` subcommands) |
|
So for some scenarios, using websockets seems to be not enough