Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can't have 2 different processes use the same port at the same time. But I don't know if a module exists for Apache to allow this. I assume you want an SSH client to appear in your browser that talks to your SSH server.
I used the info at http://www.linuxjournal.com/article/6453 to allow me to run commands on my server while I'm at work since our proxy also stops SSH access. It looks a little clunky when you read the article but it works very nicely. Basically I can send an email to a particular address on my server, with a particular subject, formatted a particular way (optionally signed with gpg) and have it run the commands in the email.
Sendmail and procmail work together with this and when a qualifying email is received the commands in it get parsed, filtered and run by a perl script. The results of the command are emailed back to me. To keep everything away from prying eyes I read my mail via a web browser over SSL.
Isn't it too slow , too using email as bash ?
I don't understand , why it is better , than using
a virtual console ( CGI-based script , that use's
system() too run sh commands , for example).
There is a lot of web interfaces , that Hosters
already use.
Sure , you need good secure for this script ,
if you wish too admin server.
When I set it up on my PC (early 2003 IIRC) I didn't need anything more than to send the occasional command. I was also setting up some mail filters via sendmail/procmail stuff for an employer so it was a useful tutorial for me.
I still use it occasionally because it solves a particular type of problem. I'm lucky enough these days that when I need to run more than one or two commands on my home setup, I can work from home and remote access isn't required
You can't have 2 different processes use the same port at the same time.
But I don't know if a module exists for Apache to allow this.
I assume you want an SSH client to appear in your browser that talks to your SSH server.
Yes, by definition one port for each applications, thats exactly why I thought of an apache module, even if I would be suprised to find one
No no, I don't really need it in my browser, that would be over my expectations. Just from a ssh client, that connects to my local tunnel, that gets untunneled by an app on the server that would go to the ssh server(usual way in fact..)
I could use vnc2swf but this is the tweaking part
Quote:
Originally Posted by gilead
I used the info at http://www.linuxjournal.com/article/6453 to allow me to run commands on my server while I'm at work since our proxy also stops SSH access. It looks a little clunky when you read the article but it works very nicely. Basically I can send an email to a particular address on my server, with a particular subject, formatted a particular way (optionally signed with gpg) and have it run the commands in the email.
Sendmail and procmail work together with this and when a qualifying email is received the commands in it get parsed, filtered and run by a perl script. The results of the command are emailed back to me. To keep everything away from prying eyes I read my mail via a web browser over SSL.
Good, I wanted to do this for a specific server so I'll put this in my bookmark (I did it in an awful way as I'm not a procmail expert). But now I need an interactive session, with completion and stuff
Quote:
Originally Posted by Silensium
There is a lot of web interfaces , that Hosters
already use.
Interesting, I didn't think of it. Yes the security scares me a bit but this I would harden it.
Do you know of any php (or better perl or cgi) that could give me a login console? Rather than redoing the wheel.. I would then put it on ssl I think..
Well what i was thinking was that you could use stunnel if the port no's dont matter to you.
Run Stunnel on port 80.
& run web server on say 8080 & SSH on 22.
& then use accept connect.
I had a similar need for which i used stunnel
so if i ssh 'ed to localhost 8888 i would get to port 22 on the other machine
& when i pointed my browser to localhost 8889 i would get to the web servr.
this is doable.
Not sure if this is the thing you are looking for,
Can't remember . I think , you will find
a lot of them in CPAN.
I don't have my own server , and
just thought about cgi , because of using this
simple script , to get bash with hosters , who
gives Perl , but no ssh/telnet access.
Well what i was thinking was that you could use stunnel if the port no's dont matter to you.
Run Stunnel on port 80.
& run web server on say 8080 & SSH on 22.
& then use accept connect.
Not sure if this is the thing you are looking for,
Yes that's a good idea, but nobody will ever be able to access to my web server anymore, thats also part of what I want.
Nevermind, I think I'm asking too much
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.