琐事:当您通过 SSH 连接到机器后,AWS EC2 显示的这个符号是什么?

Trivia: What is this symbol that AWS EC2 displays once you SSH into the machine?

只是对这个很感兴趣,这里的 ASCII 艺术到底有多火?

$ ssh foo@$AWS_IP

Last login: Sat Mar 21 08:39:27 2015 from xx.xx.xx.xx

       __|  __|_  )
       _|  (     /   Amazon Linux AMI
      ___|\___|___|

我需要它来保持理智。

表示 EC2 的是 ASCII 艺术。这代表弹性计算云

您可以使用实用程序 figlet 制作自定义的。 'showfigfonts' 将显示可用的字体,aws 使用的字体名为“standard”

我们通过 ebextensions 制作自定义横幅,例如 aws。即创建文件 .ebextension/000update-motd.config

commands:
  setup_banner:
    command: |
      yum erase -y update-motd
      unlink /etc/motd 
      amazon-linux-extras install epel -y
      yum-config-manager --enable epel
      yum install -y figlet
      # Add Motd as Beanstalk Environment Name
      echo `{"Ref": "AWSEBEnvironmentName" }` | figlet -f standard > /etc/motd
      # Add warning disclaimer from your code ( optional )
      # cat /var/app/current/.platform/banner  >> /etc/motd  

    test: rpm --quiet -q update-motd  || [[ ! -f /etc/motd ]]
    ignoreErrors: true