Interactive Shell with the underlying system

Marnen Laibow-Koser wrote:

Daniel E. wrote:
[…]

Jeah i think we are quite a litte bit off topic here. But i mean, whats
wrong with HTTPS and above of that Kerberos authentification? SSH isn
better encryptet as HTTPS.

The issue is not one of encryption, but of authentication. HTTP simply
doesn’t provide the user model that you need.

Back to Topic Aldric G. aproach sounds really interessting, so
does it work? Or where do i have to start?

Don’t use it. Use SSH.

Oh, don´t sorry i don´t bag u for a complet solution, i am just
searching for the right hint.

SSH is a complete solution. You’ve been told this several times. It is
the right hint. Your idea is DANGEROUS. Do not implement it unless you
are SURE that you can deal with the security issues.

Once more: use SSH. Completely forget about your HTTP idea v

Greetings Kaji

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Hey guys again,

so hmm, yes i thought of an kerberos pre authentification, but the most
neckle would be to run ruby under different users etc, that sounds like
a lot of pain. So maybe i make something with SSH, with a really nice
redirect with ajax to the Webbrowser, hmm ok guys ! Thanks a lot, i will
look forward to it and post when i have something nice.

Greetings Kaji

Daniel E. wrote:
[…]

Jeah i think we are quite a litte bit off topic here. But i mean, whats
wrong with HTTPS and above of that Kerberos authentification? SSH isn
better encryptet as HTTPS.

The issue is not one of encryption, but of authentication. HTTP simply
doesn’t provide the user model that you need.

Back to Topic Aldric G. aproach sounds really interessting, so
does it work? Or where do i have to start?

Don’t use it. Use SSH.

Oh, don´t sorry i don´t bag u for a complet solution, i am just
searching for the right hint.

SSH is a complete solution. You’ve been told this several times. It is
the right hint. Your idea is DANGEROUS. Do not implement it unless you
are SURE that you can deal with the security issues.

Once more: use SSH. Completely forget about your HTTP idea v

Greetings Kaji

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

This is certainly an interesting idea, though I agree with others that
this could very quickly turn ugly. That said, I think the code you’re
looking for is %x[some command]. Jay Fields has a good bit on it
here:
http://blog.jayfields.com/2006/06/ruby-kernel-system-exec-and-x.html

In short, %x[command] will run command on the shell and return the
output. e.g.,
result = %x[uptime]
result #=> “13:16 up 4 days, 1:30, 2 users, load averages: 0.39 0.29
0.23\n”

Best of luck,
Jeff Tucker

On Nov 10, 10:02 am, Daniel E. [email protected]