Ubuntu修改SSH登录成功显示信息

修改登录成功显示信息

/etc/update-motd.d/

1
2
3
root@icpos:/etc/update-motd.d# ls
00-header 50-landscape-sysinfo 80-esm
10-help-text 50-motd-news.bak 91-release-upgrade

显示系统信息

sudo apt-get install landscape-common

1
2
3
4
5
6
7
8
9
10
11
12
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-33-generic x86_64)

System information as of Tue Apr 23 09:40:20 CST 2019

System load: 0.08 Processes: 105
Usage of /: 23.4% of 39.25GB Users logged in: 0
Memory usage: 79% IP address for eth0: 172.16.194.44
Swap usage: 0%

Welcome to Alibaba Cloud Elastic Compute Service !

Last login: Wed Apr 10 11:41:40 2019 from 183.238.199.240