13

Whenever I login to my Pi via ssh I get this message:

[email protected]'s password: 
Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Is there a way how to disable that because it takes up half the screen when I login?

Thanks.

3

2 Answers 2

14

As Joan notes, motd is the key. The Debian wiki has good information on how the motd file is generated at boot and how to modify it. Check out the How to keep your /etc/motd from being overwritten section to make permanent motd changes.

If you just want to disable it for your user, create a .hushlogin file in your home directory:

touch ~/.hushlogin

3
  • removed everything in the motd file and made the hushlogin file and that worked! Thanks. (Also I use vim not pico. :) )
    – iProgram
    Commented May 28, 2015 at 16:53
  • I just updated my answer to reflect the fact that debian regenerates the motd file. The wiki shows how to prevent this, but ~/.hushlogin is a lot easier! Oh, and I use vi as well. Just going along with the raspi flow.
    – bobstro
    Commented May 28, 2015 at 16:56
  • I deleted everything in the motd file and it kepped the changes after reboot. Thanks for editing the answer (only rebooted to check that. :) )
    – iProgram
    Commented May 28, 2015 at 16:57
2

Remove /etc/motd and the message will no longer be displayed.

3
  • 4
    I'd use sudo sh -c 'echo "" > /etc/motd' to replace the file with an empty one.
    – Dougie
    Commented Jan 26, 2020 at 9:27
  • What makes your answer different from the accepted answer?
    – Ingo
    Commented Jan 27, 2020 at 9:40
  • @Ingo accepted says to modify, this says to delete? dunno. Commented Nov 9, 2021 at 4:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.