3 ms·
You know I tried to hack to play a gif upon SSH login, /etc/issue.net does not accept ANSI chars, but /etc/motd does. So I mkfifo /etc/motd, use some monkey pa
by est 10y ago
You know I tried to hack to play a gif upon SSH login, /etc/issue.net does not accept ANSI chars, but /etc/motd does.
So I mkfifo /etc/motd, use some monkey patched shell commands to stream gif to /etc/motd, tried SSH login, the animation totally works, adjust the sleep you get different speeds.
I was totally satisfied with this and logged out of my VPS server. Oh wait....
Since my scripts was not in a loop, so it only feeds data into /etc/motd once, after I logout every SSH session, I can no longer login. Even local login fails because Linux would stuck forever reading the fifo /etc/motd.
I had to mount the disk into another machine and restore /etc/motd to normal.
Lessons learned, don't mkfifo /etc/motd.
- toast0 10y agoIsn't motd only displayed on interactive login? You could probably have gotten back in if you did something like ssh foo "sudo rm /etc/motd"