How to configure the linux server login welcome information

Source: Internet
Author: User
Tags ssh server
How to configure the linux server login welcome information when logging on to a testing machine, we found that a line & amp; rsquo; WelcometoCloudex & amp; rsquo; was displayed before PS1. In linux, you can set the etcissue and etcmotd files to implement such login welcome information. Logon teaches you how to configure the linux server login Welcome information when logging on to a testing machine, we found that a line of 'Welcome to Cloudex 'is displayed before PS1. In linux, you can set the/etc/issue and/etc/motd files to implement such login welcome information. When logging on to a test machine, we found that a line of Welcome information from 'Welcome to Cloudex 'was displayed before PS1. In linux, you can set the/etc/issue and/etc/motd files to implement such login welcome information. Open/etc/issue. There are already two lines of centos5 information in it. add here and try again, save and quit, and then re-run the ssh server. The result is still default: Connecting to 192.168.0.1: 22... Connection established. Escape character is '^ @]'. Last login: Tue May 18 16:04:38 2010 from 192.168.1.1 [root @ test ~] # Take a closer look. it seems that this file takes effect only after restart. Modify motd and log out again. No, it's strange. Check/etc/ssh/sshd_config, and you will see a PrintMotd no in it !? Change to PrintMotd yes,/etc/init. d/sshd restart; exit and re-log in. If the welcome information in the previously uninstalled motd is shown in the following figure: haha: Last login: Tue May 18 16:04:38 2010 from 192.168.1.2 haha, I'm Raocl!
Related Article

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.