Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage inside an SSH session #7

Open
rogerbraun opened this issue Apr 1, 2019 · 2 comments
Open

Usage inside an SSH session #7

rogerbraun opened this issue Apr 1, 2019 · 2 comments

Comments

@rogerbraun
Copy link

I tried using ratatouille inside an SSH session, but the terminal got drawn on the server side, not the client side. The SSH server used is https://github.com/jbenden/esshd, which wraps the ssh module in OTP.

Is it possible to achieve this somehow?

@ndreynolds
Copy link
Owner

I think it definitely should be possible. The output is written to /dev/tty by default, but it could be made configurable (and set to another file) if needed. It's a matter of making sure the output is written to the right file and that it's redirected correctly to your ssh client.

But I think it works in general via ssh. For example, I can start up openssh-server locally, ssh into the machine, and run one of the examples:

$ ssh ndr@127.0.0.1
Last login: Mon Apr  1 16:07:27 2019 from 127.0.0.1
ndr@localhost ~/c/ratatouille> mix run examples/counter.exs 

(That renders the example in my client session.)

So I wonder if this is specific to Erlang ssh or your application. Could you describe how it works a bit more?

For example, is it an Erlang/Elixir client, openssh client, or something else? Also, does the client start a new Erlang VM process with ratatouille, or is it already running when you connect? Is there a PTY connected?

If you have an example that I can run, I'd be happy to test it out here.

@tehprofessor
Copy link

I'm late to this party, but if you don't have a display server running echo $DISPLAY (returns nothing on the remote host) or SSH is not configured for X11 forwarding it won't work but it's not a limitation of Ratatouille.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants