Skip to main content

Timeline for SSH MOTD per user

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Jun 27, 2022 at 3:04 comment added domsson "The shell script /etc/sshrc is invoked by the SSH server for each incoming SSH connection. [...] You may define a similar script in your account, ~/.ssh/rc (SSH1, OpenSSH) or ~/.ssh2/rc (SSH2), to be invoked for every SSH connection to your account. If this file exists, /etc/sshrc isn't run. The SSH rc file is much like a shell startup file (e.g., ~/.profile or ~/.cshrc), but it executes only when your account is accessed by SSH. It is run for both interactive logins and remote commands." From O'REILLY - SSH: The Secure Shell
Dec 18, 2014 at 21:50 comment added c4f4t0r what do you have in .ssh/rc?
Dec 18, 2014 at 19:00 comment added Dennis Williamson I get "stty: standard input: Inappropriate ioctl for device".
Dec 18, 2014 at 16:59 history edited Mike CC BY-SA 3.0
edited body
Dec 18, 2014 at 16:15 comment added simon "Wolrd" is also a typo :)
Dec 18, 2014 at 10:04 review Suggested edits
Dec 18, 2014 at 10:56
Dec 18, 2014 at 9:26 history edited c4f4t0r CC BY-SA 3.0
added 5 characters in body
Dec 18, 2014 at 9:26 comment added c4f4t0r was my fault, i did a typo, you need echo like in normal bash script
Dec 18, 2014 at 9:17 comment added user260277 hi, I try this but it gives error message .ssh/rc: 1: .ssh/rc: welcom: not found.
Dec 18, 2014 at 7:57 history answered c4f4t0r CC BY-SA 3.0