Custom Linux Terminal/ssh welcome information before and after login

Source: Internet
Author: User

Pre-Logon message:

1. System-level settings (this information is not displayed when the remote SSH connection is used)

Before entering the user name in the login system, you can see the Welcome ... Information, this will show the LINUX distribution name, kernel version number, date, machine information and so on, to set up, first open the/etc/issue file, you can see that there is a section of the "Welcome to <linux release version name >- Kernel followed by the parameters \ "

Description of the following parameters:

\ r Displays the kernel kernel version number;

\l Display Virtual Console number;

\d display the current date;

\ nthe host name is displayed;

\m display machine type, i.e. CPU architecture, such as i386, etc.;

Understand the meaning of the parameters, to modify, the above section of the Welcome information is modified as follows, you can display all the necessary information:

Welcome to <linux release version name >-kernel \ r (\l) \d \ n \m.

2. SSH settings

Vi/etc/ssh/sshd_config add

Banner/etc/ssh/ssh_login_banner

Write the greeting or message to/etc/ssh/ssh_login_banner (centos6.4), which is simple.

Post-logon prompt message:

Edit/ETC/MOTD This file, add any welcome information you like, this message will be displayed after successful login!


Custom Linux Terminal/ssh welcome information before and after login

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.