3 ms·
I built this and it looks proper in the terminal... but when I ssh to localhost its just the ansi characters... its garbled and there is no color. Same in iTerm
by johng 13y ago
I built this and it looks proper in the terminal... but when I ssh to localhost its just the ansi characters... its garbled and there is no color. Same in iTerm and Terminal. I can cat the file and its fine. Somehow the ssh login breaks it?
- yankcrime 13y agoLooks like this (as in, display of ANSI escape-sequences in login banners) was disabled in OpenSSH as of v5.1p1: http://www.mail-archive.com/secureshell@securityfocus.com/msg02813.html http://www.mail-archive.com/secureshell@securityfocus.com/ms... Edit: I should add that it does work fine if you place the generated output into /etc/motd instead. The article argues that might not be the best place for it, I'll leave that for you to decide however.