VPS Tutorial: Linux Customizes the Welcome Message after SSH Login

888u

Last update at :2023-12-12,Edit by888u

This article is reprinted from the Weimo Tribe (#custom#Linux changes the welcome message after SSH login). I feel it is quite interesting and has a high level of professionalism, so I reprint it here specially. Because we have seen that many merchants will also customize some of their own welcome words on the SSH login page, which makes it look like these merchants are highly skilled. Only today did I realize that this thing is very simple and each of us can customize it ourselves.

The following is the original text.

When we use some services such as Aliyun, we will find that merchants will display some specific information or logos after we log in through SSH. In fact, we can achieve similar effects by editing some specific files

Linux modifies the welcome message after SSH login

Method: Modify /etc/motd

If you want to make the content more interesting or beautiful, you can use some Text to ASII Art websites, such as http://patorjk.com/software/taag. There are quite a lot of fonts. You can even search for image to ASCII The generator converts the image into text and puts it in. Here is a simple example

__ ___ __ _____ ___ __ ___ ___ ___ _ __ ___ \ \ / / '_ ` _ \ \ / / '_ \/ __| / __/ _ \| '_ ` _ \ \ V /| | | | | \ V /| |_) \__ \| (_| (_) | | | | | | \_/ |_| |_| |_|\_/ | .__/|___(_)___\___/|_| |_| |_| | | |_|

The above is the information after modifying the successful login. If you want to modify the information before ssh login

Modify and add (or remove the # comment before Banner) Banner /etc/banner line

vi /etc/ssh/sshd_config

Add the text to be added to the /etc/banner file

Restart ssh to take effect

/etc/init.d/ssh restart

Recommended site search: Jiangsu high-defense server, American ASP space, free proxy IP address, overseas virtual host, foreign server, dynamic vps instant IP change, server, com domain name, Hong Kong vps host, ICP website registration,

VPS Tutorial: Linux Customizes the Welcome Message after SSH Login

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码