3 ms·
For anyone following in these footsteps: It works well. I spent more time fighting Swift Argument Parser than the NIOSSH. Fundamentally, there is not a way to
by jws 6y ago
For anyone following in these footsteps: It works well.
I spent more time fighting Swift Argument Parser than the NIOSSH. Fundamentally, there is not a way to pass context down to a command that is run. Fine when you are a whole program reading its commands and everything is implicitly global, but if you have a bunch of SSH connections coming in then just getting the output to the right one needs context.
I'm not real happy with my solution, but its clean and it works. Figure two days to get a usable subsystem working.
I have a few more things to try to clean up my mess. If it works I'll tidy up the package and publish it.
- jws 6y agoTwo days in. The package is useful and mostly complete. See https://github.com/jimstudt/SSHConsole https://github.com/jimstudt/SSHConsole if you have needs, or just want to see another example of using NIOSS on the server. This one includes the public key authentication which in retrospect is trivial-ish.