LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2011, 01:55 PM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
ssh to webmin?


I am trying to setup an ssh connection to webmin but am not getting any success.
I am using this command:
ssh -L 8080:localhost:10000 myloginname@88.xxx.xxx.xxx

I then open up FF on ubuntu and type http://localhost:8080 but it is blank.
When I go to 88.xxx.xxx.xxx:10000 it brings up the webpage so I know the webserver and site is working.
 
Old 09-30-2011, 04:19 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
You can enable ssl Encryption on webmin, that encrypts the user/password and the entire session.

You can also restrict the IP addresses the target will listen to.


Is there some reason you need to do this through ssh?
 
Old 09-30-2011, 05:57 PM   #3
teddymills1
LQ Newbie
 
Registered: Aug 2010
Posts: 15

Rep: Reputation: 0
webmin and shellinabox

What is wrong with using HTTPS and port 10000?

If you want SSH, what about fogetting about webmin and use shellinabox?
http://code.google.com/p/shellinabox/



Quote:
Originally Posted by qwertyjjj View Post
I am trying to setup an ssh connection to webmin but am not getting any success.
I am using this command:
ssh -L 8080:localhost:10000 myloginname@88.xxx.xxx.xxx

I then open up FF on ubuntu and type http://localhost:8080 but it is blank.
When I go to 88.xxx.xxx.xxx:10000 it brings up the webpage so I know the webserver and site is working.
 
Old 10-01-2011, 03:42 AM   #4
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
I don't think I have https on my webserver.
Plus isn;t it generally a bad idea to have webmin publicly accessible?

Secure Connection Failed

* The page you are trying to view can not be shown because the authenticity of the received data could not be verified.

* Please contact the web site owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.

Last edited by qwertyjjj; 10-01-2011 at 04:26 AM.
 
Old 10-01-2011, 05:56 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by qwertyjjj View Post
I don't think I have https on my webserver.
Can you check for it? If you can't make it work can you install software like say Stunnel to provide SSL?


Quote:
Originally Posted by qwertyjjj View Post
Plus isn;t it generally a bad idea to have webmin publicly accessible?
Yes, web-based management tools should have restricted access. As you tested 88.xxx.xxx.xxx:10000 brings up its web page best limit access in your web servers configuration file or use a .htaccess before exploring how to get SSL working.
 
Old 10-01-2011, 06:23 AM   #6
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Is there anyway to get free certificates and install those or do I need one signed for my actual server?
I'm trying to keep this free as it's only for webmin.

I followed this but I get errors: http://www.debian-administration.org/articles/349

[root ]# apache2-ssl-certificate
-bash: apache2-ssl-certificate: command not found
[root ]# a2enmod ssl
-bash: a2enmod: command not found
[root ]#

Last edited by qwertyjjj; 10-01-2011 at 06:30 AM.
 
Old 10-01-2011, 06:48 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I'd say install what you don't have.
 
Old 10-01-2011, 07:19 AM   #8
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
I'd say install what you don't have.
apache2?
Does that mean I only have apache1?
 
Old 10-01-2011, 08:39 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
No, if you don't have apache2-ssl-certificate (and if no package provides it, that's what I meant) see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=398520, post #25 and #30.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Securing SSH via Webmin scottt20 Linux - Server 3 01-28-2010 02:22 PM
Webmin SSH connection issue KunoNoOni Linux - Server 4 12-31-2007 07:34 PM
SSH + Webmin + VNC johnnydangerous Fedora 3 02-05-2005 05:54 AM
Need help using Webmin to tell SSH to allow logins Xolo Linux - Security 9 11-22-2004 03:57 PM
ssh and webmin strangely died emperorjordan Linux - Networking 5 03-24-2004 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration