How can I edit the welcome message when ssh start?

如何設置Linux用戶登錄後的歡迎信息
Today, I login LeChunk, then it show the welcome information. That’s so funny.
Also we can get lots of ASCII Art picture in asciiworld.com.

根據需要修改下面兩個文件

1、/etc/issue

用 法:當我們在終端接口登錄的時候,會有幾行提示字符串,那麼這個字符串就是設置在/etc/issue。

2、/etc/motd

/etc/motd (Message of the Day)
/etc/ssh/sshd_config: Change the setting PrintLastLog to “no”, this will disable the “Last login” message.

用 法:如果想讓用戶登錄後獲取一些消息,比如想讓大家都知道的消息,就可以加入這個文件,當登錄後,告訴登錄者,系統將會在某個時間進行維護。

#
[hui@LeChuck ~]$ more /etc/motd
` ,.
:.:::'
,
:;++++:++#; .;
.+++++;+++#+ .,:
;+++++++++++# ,,,'
,++++++'++'#+, ,,:;
,+++#++:###++; ,,;;
.:+#++#+++'++#: ,,;;
.;+++'''#++#+## .,::
#+#+'+###@;+: .,:.
.##''#@@@##+#,# :,:
:###'''@@@@+++##+
.,;
‘####’#;##@#@++#+++,;
,'#+@@#+::+#@#@+++#+++.;
;'#####''++@#@@+++++++.;
''##@#@@@@@#@@#+++++++.+
,++#+#@@@#@@@@@+++++++#.@
‘++++#@@@@@@@@++++#++#+.#’
‘++++++##@@#@@++++++’##+.#@
#++++’+#####@#’++++#, ‘;,’,+
+++++#++++#+#++#++## +':#+;
+;+++;'+++##++++#### '+;#+,
+:++#
++#+’#######. +++++
+:++#@#'::::####@:;:
,+++ ###.###@’###@
.’; @##:####;@###
'' ;+@#:@##@'@####:
.+++++';;'#+++++++
;+++++''+''++++++':
”++++’#++’+++++”
””+”+++#’++”’+
+++;''+++++#''+###
'++++++'''++++++++++
'+++++, ;++++++
‘+++# #+++#
,’++: +##+
.#### +###;
,+##+ ;’#;
+ #
# #,
####
#: #

This is LeChuck.
#

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章