how to insert a bash prompt / terminal inside a ruby ββsite on a rails page?
how to execute linux command from web page and get ommand output?
You should look for answers in this question: Terminal in a web browser?
I myself found the correct links there.
Why do you need to do this? :))
This is simple because ruby ββhas %x[]
%x[]
output = %x[#{input}]
The simplest approach would probably be to use a pre-existing implementable SSH implementation , such as a Java applet, and enable it on the page.