Skip to main content

Timeline for SSH MOTD per user

Current License: CC BY-SA 4.0

26 events
when toggle format what by license comment
Oct 2, 2019 at 14:31 history edited Martin Prikryl CC BY-SA 4.0
added 91 characters in body
Sep 12, 2017 at 15:49 history edited Martin Prikryl CC BY-SA 3.0
https
Apr 13, 2017 at 12:37 history edited CommunityBot
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Mar 2, 2017 at 21:30 history edited Martin Prikryl CC BY-SA 3.0
grammar + share link
Jan 16, 2017 at 5:58 history edited u1686_grawity CC BY-SA 3.0
added 252 characters in body
Nov 9, 2016 at 11:53 history edited Martin Prikryl CC BY-SA 3.0
links updates
Jan 14, 2015 at 22:38 audit First posts
Jan 15, 2015 at 5:17
Dec 19, 2014 at 12:57 history edited Martin Prikryl CC BY-SA 3.0
more meningful paths to banners
Dec 19, 2014 at 9:55 history edited Martin Prikryl CC BY-SA 3.0
typo
Dec 19, 2014 at 7:48 history edited Martin Prikryl CC BY-SA 3.0
ssh message name + wording
Dec 19, 2014 at 7:40 history edited Martin Prikryl CC BY-SA 3.0
not sure about /etc/profile + modt cannot be sent to sftp + ssh banner is ssh-2.0 only
Dec 19, 2014 at 7:39 comment added Martin Prikryl @nyuszika7h I understood as much from Bash man page. But it's not clear definitely. So I'm better removing that note.
Dec 18, 2014 at 19:20 comment added user67815 I'm pretty sure /etc/profile is not only executed for interactive shells.
Dec 18, 2014 at 13:35 history edited Martin Prikryl CC BY-SA 3.0
added 7 characters in body
Dec 18, 2014 at 13:27 history edited Martin Prikryl CC BY-SA 3.0
added 1 character in body
Dec 18, 2014 at 13:22 history edited Martin Prikryl CC BY-SA 3.0
added 9 characters in body
Dec 18, 2014 at 13:17 history edited Martin Prikryl CC BY-SA 3.0
added 9 characters in body
Dec 18, 2014 at 13:07 history edited Martin Prikryl CC BY-SA 3.0
about custom implementation
Dec 18, 2014 at 13:02 comment added Martin Prikryl I have included some tricky details about custom implementation of the banner.
Dec 18, 2014 at 13:01 history edited Martin Prikryl CC BY-SA 3.0
about custom implementation
Dec 18, 2014 at 10:07 comment added Martin Prikryl It's a terminal that a human interacts with (as opposite to SFTP session, SCP session or non-interactive terminal used for remote execution of some batch task)
Dec 18, 2014 at 9:23 comment added user260277 interactive terminal means ?
Dec 18, 2014 at 9:20 comment added Martin Prikryl That should do too. Except as per my answer, this works in an interactive terminal only. It won't work for SFTP and similar.
Dec 18, 2014 at 9:04 comment added user260277 Hi all thanks for reply, I got the solution please correct me if i am wrong. I append this lines into /etc/profile file. PGROUP=groups|awk '{print $1}' cat /etc/motd.${PGROUP} before adding this line i create banner file for each user under /etc directory. and file like motd.root and motd.alex and this work for me.
Dec 18, 2014 at 7:38 history edited Martin Prikryl CC BY-SA 3.0
added 383 characters in body
Dec 18, 2014 at 7:33 history answered Martin Prikryl CC BY-SA 3.0