# Is there a Telnet Rails Application that someone has build/released?

**URL:** <https://www.ruby-forum.com/t/is-there-a-telnet-rails-application-that-someone-has-build-released/121452>\
**Category:** Rails\
**Created:** [November 28, 2007, 4:14am UTC](https://www.ruby-forum.com/t/is-there-a-telnet-rails-application-that-someone-has-build-released/121452 "2007-11-28T04:14:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [November 28, 2007, 4:14am UTC](https://www.ruby-forum.com/t/is-there-a-telnet-rails-application-that-someone-has-build-released/121452/1 "2007-11-28T04:14:21Z")

</div>

Hi,

Does anyone know if there is a secure Telnet Rails Web Application that  
is  
available? i.e. to allow a telnet (SSH) session but in a  
web-application  
form (i.e. you deploy the rails application on the host you want to  
telnet  
to)

Background (if you wondering why I ask) is because I haven’t solved the  
following, and I see this is one way around the constraint I have:

============================================  
Hi,

I have only port 443 available (for secure based connections). That is  
for  
logging out of a specific external environment back into my own network.

Question - How can I have both my SSL enabled Apache Web Server (httpd)  
AS  
WELL AS my SSH server (sshd) sharing this port???

I can’t even use logging onto my linux firewall box  
([www.clarkconnect.com](http://www.clarkconnect.com))  
to switch one off listener and and then the other on as an option, as I  
need  
to log in via HTTPS to the Apache Web Server to do this, so if I switch  
it  
off I wont’ be able to log back in to switch it on again.

Is there no way for Apache/modules to look at traffic on incoming port  
443  
and direct it to a particular application/process on that same box based  
on  
some element of the traffic coming in?

# Thanks

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [November 28, 2007, 4:28am UTC](https://www.ruby-forum.com/t/is-there-a-telnet-rails-application-that-someone-has-build-released/121452/2 "2007-11-28T04:28:23Z")

</div>

On Nov 27, 2007, at 10:13 PM, Greg H. wrote:

> Question - How can I have both my SSL enabled Apache Web Server  
> (httpd) AS WELL AS my SSH server (sshd) sharing this port???

You can’t in any clean way. You might be able to write a proxy which  
looked at the first bits of traffic to come in and, depending on  
whether the traffic looks like the start of an SSL or SSH connection,  
proxy the packets directly to an appropriate local server. This is  
kind of messy, though (and gets into all sorts of issues related to  
long-lived vs. short-lived connections).

That said, you might be able to do something with Ajaxterm, giving you  
a terminal via SSL (rather than SSH):

[http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm](http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm)

-faisal

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [November 28, 2007, 4:35am UTC](https://www.ruby-forum.com/t/is-there-a-telnet-rails-application-that-someone-has-build-released/121452/3 "2007-11-28T04:35:59Z")

</div>

re “a terminal via SSL (rather than SSH)” - Yes this is what I  
interested /  
meant to ask about. Has someone already created a Rails application  
(that  
could run under SSL) that uses AJAX to create a “telnet” like (of “ssh”  
like) terminal to the server?

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [November 28, 2007, 5:29am UTC](https://www.ruby-forum.com/t/is-there-a-telnet-rails-application-that-someone-has-build-released/121452/4 "2007-11-28T05:29:09Z")

</div>

I’m open to any solution that is easy for me to install on my Linux  
firewall  
PC, that has Apache running (see [www.clarkconnect.com](http://www.clarkconnect.com)). I just  
mentioned  
Rails I guess because I have deployed/built a rails application before,  
so  
if it were buggy or needed some mod’s it would be easier for me.

What is Ajaxterm?

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [November 28, 2007, 5:14am UTC](https://www.ruby-forum.com/t/is-there-a-telnet-rails-application-that-someone-has-build-released/121452/5 "2007-11-28T05:14:33Z")

</div>

I’ve heard rumor that Slicehost’s console is Ajaxterm, somehow  
integrated with Rails.

Let me turn your question on its head: what kind of integration do  
you need? What do you need from Rails, specifically? Is there a  
reason you couldn’t run Ajaxterm alongside a Rails app (given that you  
appear to be using Apache and, presumably, could use mod\_rewrite to  
funnel traffic to appropriate app)?

-faisal
