📜 ⬆️ ⬇️

How to change ssh-greeting under ubuntu

Every time I connect to my Ubuntu over SSH, I see the same dreary message :
Linux superfast 2.6.20-16-generic #2 SMP Thu Jun 7 19:00:28 UTC 2007×86_64

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

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Last login: Mon Aug 13 01:05:46 2007 from ipaddress removed

geek@superfast:~$

Here's how to change it. It will be necessary to edit a couple of files.
The first three paragraphs of this "cart" are here:
/etc/motd
The build number and disclaimer of warranties - the information is not very useful for me, I just replaced it all.
To disable the last login message (which I do not recommend doing), you need to edit this file:
/etc/ssh/sshd_config
Find this option and replace yes with no:
PrintLastLog no
Now, when you enter, you will not see this message. For security reasons, I still do not recommend it.
Here is what my login looks like now:
This is a superfast system. Please max out the cpu accordingly.

Last login: Mon Aug 13 01:24:14 2007 from ipaddress removed
geek@superfast:~$

Linux is cool.

')

Source: https://habr.com/ru/post/31199/


All Articles