Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default How to set up SSH message?

    I want to set up SSH welcome message that user can see when they login to server via SSH. Not sure from where I can set this. Can anybody tell me the steps from where can I set this up?

  2. #2
    Member
    Join Date
    Jul 2006
    Posts
    290

    Default

    Do you want a custom one for each account, or just one for all? If the latter, you just need to edit /etc/motd and add your message, and edit your sshd_config file and change the "PrintMotd" to yes.
    Last edited by ChrisRHS; 05-17-2009 at 09:39 AM.

  3. #3
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    488
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    /etc/motd works for me

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    You may want to chattr it to lock the /etc/motd once you're done to make sure nothing reverts it.

  5. #5
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    Quote Originally Posted by ChrisRHS View Post
    Do you want a custom one for each account, or just one for all? If the latter, you just need to edit /etc/motd and add your message, and edit your sshd_config file and change the "PrintMotd" to yes.
    Thanks..I want it for all the SSH users. I have followed the steps and it works for me.

Similar Threads & Tags
Similar threads

  1. How to set hostname using ssh
    By jestin_virtual in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-08-2009, 02:35 PM
  2. Changing the default message for SSH-disabled accounts
    By Valetia in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-07-2005, 04:32 PM
  3. Set SSH timeout
    By Wallaby in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-28-2004, 03:50 AM
  4. How to set update preference in SSH
    By bennet in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-14-2003, 09:41 PM
  5. Replies: 2
    Last Post: 10-27-2003, 06:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube