通过 SSH 连接到 EC2 实例后,我得到了一份不错的摘要报告 - 您可以在下面找到该报告。是否可以使用命令显示此报告?
➜ ~ ssh ...
Warning: the ECDSA host key for 'example.net' differs from the key for the IP address '12.34.56.78'
Offending key for IP in /home/user/.ssh/known_hosts:30
Matching host key in /home/user/.ssh/known_hosts:66
Are you sure you want to continue connecting (yes/no)? yes
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-59-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon Feb 6 10:03:28 UTC 2017
System load: 0.66 Processes: 155
Usage of /: 43.0% of 49.08GB Users logged in: 0
Memory usage: 1% IP address for eth0: 172.12.34.56
Swap usage: 0%
Graph this data and manage this system at:
https://landscape.canonical.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
10 packages can be updated.
10 updates are security updates.
*** System restart required ***
Last login: Mon Feb 6 09:20:51 2017 from 31.19.89.2
ubuntu@ip-172-12-34-56:~$
对的,这是可能的。实际上有一些脚本。波纹管显示系统信息,如负载、内存、交换等
可以在此位置找到其他脚本:
以下是他们的完整列表:
据我所知,“报告”是传统 MOTD(每日消息)登录消息的特定于 Ubuntu 的动态版本,使用
update-motd
.您可以通过阅读文件来访问该报告
/var/run/motd
从手册: