I'm using an embedded Linux distribution (Lime2) on a custom ARM board.
On login via SSH, the following is displayed:
root@mybox ~ # ssh localhost root@localhost's password: _ _ ____ | | (_)_ __ ___ ___ |___ \ | | | | '_ ` _ \ / _ \ __) | | |___| | | | | | | __/ / __/ |_____|_|_| |_| |_|\___| |_____| welcome to mybox! Last login: Wed May 4 19:50:28 2016 from localhost Load: 1.01, 1.10, 0.86 - Board: 27.3°C - Memory: 929Mb root@mybox ~ #
I'm wondering where the individual components of this prompt are coming from. This is what I figured out:
- The password prompt line is coming from
- I have no idea about the Lime2 banner is coming from
- The welcome message is what I entered into /etc/motd
- The 'Last login' line is generated by
PAMservice, I suppose
- The 'Load' line I found hidden in
So... apart from
/etc/motd, which other files are displayed or executed before spawning the login shell? Where is this Lime2 banner coming from?