Best-Selling Hosting

Top Rated Providers

Editors Pick

Creating a Welcome message for SSH logins Published: Oct 31, 2003
  • Rating

    4/5

Change /whm and /cpanel aliases to https making all logins encrypted and secure.

This tutorial will show you how to accomplish https connections when going to servername/whm or /cpanel for those who may still be using the insecure ways to login to WHM and CPanel forcing a secure connection for all users.

Step 1: Backup files
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.insecure

Step 2: Edit the file
pico /etc/httpd/conf/httpd.conf

Step 3: Search for the line:
Ctrl+W   then  ScriptAlias /cpanel /usr/local/cpanel/base/redirect.cgi

Step 4: Edit the line to show the following: ScriptAlias /cpanel /usr/local/cpanel/base/sredirect.cgi (simply change the redirect.cgi to sredirect.cgi)

Step 5: Search for the line:
Ctrl+W   then  ScriptAlias /whm /usr/local/cpanel/base/whmredirect.cgi

Step 6: Edit the line to show the following:
ScriptAlias /whm /usr/local/cpanel/base/swhmredirect.cgi (simply change the whmredirect.cgi to swhmredirect.cgi)

Step 7: Save and exit using the following: Ctrl+X  then press Y

Step 8: Restart Apache to have changes take effect:
service httpd restart
  • Rating

    4/5

Related Articles

Comments (16)

  • Gravatar - Mark Janssen
    Mark Janssen 16:39, November 30, 2003
    If you create a ssh banner file, this will be displayed before people log in, instead of after (with the motd version).

    Specify 'Banner /etc/banner' in sshd_config
  • Gravatar - jad madi
    jad madi 15:47, May 20, 2004
    edit /etc/profile
    at the end add
    uptime
    date
    so uptime status and date will appear.
  • Gravatar - JLChafardet
    JLChafardet 19:54, November 2, 2004
    Mark Janssen <br />
    If you create a ssh banner file, this will be displayed before people log in, instead of after (with the motd version). Specify 'Banner /etc/banner' in sshd_config<br />
    <br />
    it didnt worked on my machine.
  • Gravatar - Skal
    Skal 00:32, June 9, 2005
    I had to reboot to make /etc/banner work.
  • Gravatar - Walter
    Walter 03:13, June 13, 2005
    <snip><br />
    Specify 'Banner /etc/banner' in sshd_config<br />
    <end snip><br />
    Added to sshd_config, restarted<br />
    sshd.<br />
    a) If I connect from a Windows box via putty - I do NOT get the banner, BUT<br />
    b) use "ssh xxxx" from another Linux box (or the same box), I get the Banner -- so might depend on how you are connecting.<br />
    <br />
    Hope this helps
  • Gravatar - BMay
    BMay 19:23, July 28, 2005
    I did get the banner with puTTY from a Windoze box.
  • Gravatar - Viza
    Viza 06:35, September 29, 2005
    you have to restart sshd before it will work
  • Gravatar - Scott
    Scott 22:16, October 19, 2005
    how do i take off the motd?
  • Gravatar - Matt
    Matt 04:30, November 10, 2005
    To remove the motd, just delete the information in /etc/motd
  • Gravatar - Wes
    Wes 15:54, November 10, 2005
    Scott,<br />
    Just edit the file as you did before and remove all the text you entered.
  • Gravatar - Linux GURU
    Linux GURU 16:55, November 13, 2005
    rm -rf /etc/motd <br />
    <br />
    :)
  • Gravatar - Dave
    Dave 06:22, January 9, 2007
    Worked great, didn't have to reboot my server.
  • Gravatar - Steve
    Steve 17:58, August 14, 2007
    So if I want a MOTD with the users name, login, and time/date.<br />
    <br />
    How would i start?<br />
    <br />
    IE Wecome <user> to mysever.<br />
    Date is:<br />
    <br />
    Your webspace is mydomain/~username<br />
    <br />
    Any webpages you can point me too?
  • Gravatar - Maarten
    Maarten 11:08, May 19, 2008
    You don't have to reboot your machine, sending a HUP-signal to the sshd process will make the sshd reread its config file and apply it.<br />
    <br />
    Thus :<br />
    1.) Create the banner file<br />
    2.) Insert the Banner-line into the sshd config file<br />
    3.) ps -ef | grep sshd<br />
    4.) kill -HUP <<sshd PID>><br />
    <br />
    It should work from then on.
  • Gravatar - Neriencorce
    Neriencorce 19:32, May 24, 2011
    <a href=http://es5.com><img>http://www.seo.com/wp-content/themes/seo-v2/images/banner_search_guy_left.png</img></a>

    Hey Everybody <a href=http://blackhatworld.com><img>http://www.es5.com/images/blackhat.gif</img></a>

    I'm hunting for a <a href=http://www.es5.com/xrumer-hrefer/><b> Whitehat</b></a> tools to escalate my rankings. I'd acknowledge virtually any kind of Search Optimization and Web Site exposure

    If you know an individual adequate to guide targeted web traffic and with <a href=http://www.es5.com><b>Blackhat</a></b> SEO. I want to study to promote and exploit for online websites & products.
  • Gravatar - Abigail Simpson
    Abigail Simpson 20:06, June 12, 2011
    <a href=http://100percentwinners.akb007.com>100% Winning Sports Betting Software</a>
    <a href=http://mrusa99.com>Bodybuilding Blog</a>
    <a href=http://tinyurl.com/634hl98>Bodybuilding and Fitness Blog</a>
    <a href=http://chicken.akb007.com>Build a Chicken Coop</a>
    <a href=http://chicken-coop-plans.akb007.com>Build a Chicken Coop Plans</a>
    <a href=http://local-mobile-monopoly.mrusa99.com>Cell Phone Marketing</a>
    <a href=http://chicken-coop.akb007.com>Chicken Coop</a>
    <a href=http://chicken-coop-plans.mrusa99.com>Chicken Coop Plans</a>
    <a href=http://akb007.com/invisalign/index.html>Clear Braces Sydney </a>
    <a href=http://commission-crusher.akb007.com>Commission Crusher - Triple Threat Software</a>
    <a href=http://concentratedviolinlessons.akb007.com>Concentrated Violin Lessons</a>
    <a href=http://www.sydneycitydental.rediweb.com.au>Cosmetic Dentist Sydney</a>
    <a href=http://dogtraining.akb007.com>DIY Dog Training</a>
    <a href=http://dog-training.akb007.com>Dog Training</a>
    <a href=http://dog-training-made-easy.akb007.com>Dog Training Made Easy</a>
    <a href=http://tinyurl.com/44nmuuy>Email Marketing and SEO Specialist</a>
    <a href=http://xtremetrafficarbitrage.akb007.com>Extreme Traffic Arbitrage</a>
    <a href=http://forex-fap.akb007.com>Forex FAP Turbo Robot</a>
    <a href=http://tinyurl.com/453e9d2>Gourmet Food</a>
    <a href=http://lookwhosblogging.com>Gourmet Food Blog</a>
    <a href=http://guitarscalemastery.akb007.com>Guitar Scale Mastery</a>
    <a href=http://how-to-win-the-lottery.mrusa99.com>How to Win the Lottery</a>
    <a href=http://invisalign.akb007.com>Invisalign</a>
    <a href=http://www.clearbracessydney.com>Invisalign Sydney</a>
    <a href=http://akb007.com/invisalign>Invisalign Teen</a>
    <a href=http://invisalign-sydney.akb007.com>Invisalign Teen Sydney</a>
    <a href=http://jamorama.mrusa99.com>Jamorama</a>
    <a href=http://jamorama.akb007.com>Jamorama - Learn to Play Guitar Online</a>
    <a href=http://silver-lotto.akb007.com>Ken Silver Lotto</a>
    <a href=http://silver-lotto.mrusa99.com>Ken Silver Lotto System</a>
    <a href=http://jamorama-reviews.akb007.com>Learn to Play Guitar Online</a>
    <a href=http://local-mobile-monopoly.akb007.com>Local Mobile Monopoly</a>
    <a href=http://lottoblackbook.akb007.com>Lotto Black Book</a>
    <a href=http://makingup.akb007.com>Magic of Making Up</a>
    <a href=http://magniwork.akb007.com>Magniwork</a>
    <a href=http://mowg.mrusa99.com>MOWG</a>
    <a href=http://mowg.akb007.com>MOWG = Mass Optimized Webpage Generation</a>
    <a href=http://jamorama-reviews.mrusa99.com>Play Guitar Online</a>
    <a href=http://pregnancy-miracle.akb007.com>Pregnancy Miracle</a>
    <a href=http://rocketpiano.akb007.com>Rocket Piano</a>
    <a href=http://satellitedirect.akb007.com>Satellite Direct - Watch TV Online for Free</a>
    <a href=http://akb007.com>SEO Specialist</a>
    <a href=http://seopressor.akb007.com>SEOPressor Premium Wordpress Plugin </a>
    <a href=http://ken-silver-lotto.akb007.com>Silver Lotto $10 Discount Offer</a>
    <a href=http://ken-silver-lotto.mrusa.com>Silver Lotto</a>
    <a href=http://silverlotto.akb007.com>Silver Lotto System</a>
    <a href=http://singorama.akb007.com>Singorama - Learn to Sing Like a Pro!</a>
    <a href=http://teds-woodworking.akb007.com>Ted's Woodworking</a>
    <a href=http://100percentwinners.akb007.com>Top Arbitrage Betting</a>
    <a href=http://truth-about-abs.akb007.com>Truth About Abs</a>
    <a href=http://how-to-win-the-lottery.akb007.com>Win the Lottery</a>
    <a href=http://how-to-win-the-lottery.mrusa99.com>Win the Lottery 9 Out of 10 Times</a> <a href=http://www.lookwhosblogging.com><img>http://www.lookwhosblogging.com/images/smile.gif</img></a>

Add Your Thoughts

WebHostGear.com is a hosting directory, not a web host.

Copyright © 1998-2010 WebHostGear.com