-2

I want to change the opening page when I connecting using ssh this is what I have now :

Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-42-generic x86_64)

Last login: Tue Nov 29 13:43:00 2016 from 10.0.0.123

where do I change it someone wrote to change /etc/motd but I don't this file so waht do I need to change?

Thanks ,

3
  • 1
    Why do you want to change it, and what do you want to change it to ?
    – Soren A
    Nov 29, 2016 at 12:13
  • I want to change it to "Welcome to my computer - have a nice day! "
    – user283170
    Nov 29, 2016 at 12:28
  • but it doesn't say how to do it , what do I need to change
    – user283170
    Nov 29, 2016 at 12:39

1 Answer 1

1

The Welcome message you see is called Message Of The Day generated by update-motd package.

Install the package update-motd by:

$ sudo apt-get install update-motd

Now go to /etc/update-motd.d/.
You'll find some scripts like 00-header, 99-footer etc.
Modify these files as per your required message and restart the ssh server by:

$ sudo service ssh restart

Now try to ssh into you machine.

4
  • Doesn't work Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package motd-update
    – user283170
    Nov 29, 2016 at 13:15
  • Look for update-motd
    – Jean-Marie
    Nov 29, 2016 at 13:21
  • I have found /etc/update-motd.d/. and change waht I want , but how do I remove this line - Documentation: help.ubuntu.com
    – user283170
    Nov 29, 2016 at 13:23
  • Updated my answer. Typo in package name. Thanks@Jean-Marie Nov 29, 2016 at 16:26

Not the answer you're looking for? Browse other questions tagged .