1 | initial version |
Looks that I can set up a twisted conch ssh server as described here to run it in sage, and execute everything that comes through ssh channel. Testing this approach I had to install only pyasn1 into sage, which is a conch dependency, otherwise the example server from the link above works out-of-the-box.
Later I will maybe post a complete solution, as soon as I get there...