Skip to content

SSH server support #46

@rahji

Description

@rahji

It would be cool if you could do something like runal -f sketch.js -p 2222 and have it start as an ssh server on port 2222

I tried a really quick attempt to see if I could make it kind of work. See this branch on my fork: https://github.com/rahji/runal/tree/run2 I basically hacked the Run function so it takes an io.Writer instead of always using io.Stdout. Then I used an ssh.Session (from gliderlabs/ssh)as the argument.

The colors example does kind of work. You can't disconnect and it is just a still image so it was the easiest attempt. I tried adding some movement between frames and that didn't work. Also tried the mouse example to see if input would be recognized but it's totally broken.

There's also wish, which uses gliderlabs/ssh under the hood, but it was easier to start with gliderlabs. Anyway, I'd say it's on my wishlist, but I haven't been using the runal command. So my real wish is to get it working in Go, which maybe just requires finding the right solution to make an existing runal sketch work with whatever server I get working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions