Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.setup > #4374
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Newsgroups | comp.os.linux.setup, comp.os.linux.misc |
| Subject | Re: Pre-logon (warning) Banner |
| Date | 2019-08-05 19:26 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrnqkhia7.7j8.BitTwister@wb.home.test> (permalink) |
| References | <qi96c2$1ijt$1@gioia.aioe.org> <HMOdnYMRcpUm0dXAnZ2dnUU7-InNnZ2d@giganews.com> <qi9k5k$1iaf$1@gioia.aioe.org> <eli$1908051429@qaz.wtf> <op.z52grdwba3w0dxdave@hodgins.homeip.net> |
Cross-posted to 2 groups.
On Mon, 05 Aug 2019 16:34:15 -0400, David W. Hodgins wrote: > On Mon, 05 Aug 2019 14:36:34 -0400, Eli the Bearded <*@eli.users.panix.com> wrote: > >> Answer: use the Banner setting in /etc/ssh/sshd_config. It takes a >> filename, and the contents of that will be shown before login. > > Interesting idea, in that I could put escape codes in the file shown > that would change the foreground and/or background colours with different > ones on different systems, however it would have the problem of leaving > those colours set on exiting from the ssh session, as there is no option > to display a file on exiting. Use ~/.bash_logout to do whatever you like at that point. I test the environment variable SSH_CLIENT to make decisions about what to do during log in/out.
Back to comp.os.linux.setup | Previous | Next — Previous in thread | Next in thread | Find similar
Pre-logon (warning) Banner "J.B. Wood" <arl_123234@hotmail.com> - 2019-08-05 08:10 -0400
Re: Pre-logon (warning) Banner Robert Heller <heller@deepsoft.com> - 2019-08-05 10:35 -0500
Re: Pre-logon (warning) Banner "J.B. Wood" <arl_123234@hotmail.com> - 2019-08-05 12:06 -0400
Re: Pre-logon (warning) Banner Eli the Bearded <*@eli.users.panix.com> - 2019-08-05 18:36 +0000
Re: Pre-logon (warning) Banner "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-08-05 16:34 -0400
Re: Pre-logon (warning) Banner Robert Heller <heller@deepsoft.com> - 2019-08-05 15:47 -0500
Re: Pre-logon (warning) Banner "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-08-05 17:36 -0400
Re: Pre-logon (warning) Banner Eli the Bearded <*@eli.users.panix.com> - 2019-08-05 23:02 +0000
Re: Pre-logon (warning) Banner Bit Twister <BitTwister@mouse-potato.com> - 2019-08-05 19:26 -0500
Re: Pre-logon (warning) Banner "J.B. Wood" <arl_123234@hotmail.com> - 2019-08-06 06:39 -0400
Re: Pre-logon (warning) Banner Robert Heller <heller@deepsoft.com> - 2019-08-05 14:17 -0500
csiph-web