Results 1 to 4 of 4

Thread: changing the motd style notices when connecting via ssh

  1. #1
    Join Date
    Dec 2010
    Beans
    3
    Distro
    Ubuntu 10.10 Maverick Meerkat

    changing the motd style notices when connecting via ssh

    Hi,

    I'm running Ubuntu Server 10.10 and noticed that every time I log into the server via ssh it gives details that i don't necessarily want it to show.
    Code:
    Linux zeus 2.6.35-22-generic-pae #33-Ubuntu SMP Sun Sep 19 22:14:14 UTC 2010 i686 GNU/Linux
    Ubuntu 10.10
    
    Welcome to Ubuntu!
     * Documentation:  https://help.ubuntu.com/
    Last login: Mon Dec  6 19:01:53 2010 from 192.168.2.3
    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
    The section in bold i know to be found in /etc/motd but when i edit and save the file the changes are not saved. Does anyone know what file this is stored in and how i can change this. Thanks
    Last edited by sean.ferguson; December 6th, 2010 at 08:46 PM.

  2. #2
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: changing the motd style notices when connecting via ssh

    There are scripts that generate the motd in /etc/update-motd.d/.

    Remove what you don't want from the directory or add your own.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  3. #3
    Join Date
    Dec 2010
    Beans
    3
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: changing the motd style notices when connecting via ssh

    Oh I see, thanks for your help.

    I much more used to BSD based systems on server platforms

  4. #4
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,284
    Distro
    Kubuntu

    Re: changing the motd style notices when connecting via ssh

    Quote Originally Posted by windependence View Post
    There are scripts that generate the motd in /etc/update-motd.d/.

    Remove what you don't want from the directory or add your own.

    -Tim
    Removal of unwanted files is an option; however I would recommend that one merely change the permissions on the file(s) so that they are no longer executable.
    Code:
    sudo chmod -x <file>

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •