Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was just wondering on CentOs how can I change the 'greeting' that the server output when a user logs in via ssh?

share|improve this question
logins in via ssl? Or ssh? – Zoredache Nov 4 '09 at 0:22
up vote 3 down vote accepted

Perhaps you are looking to update the content that is part of the Message of the Day (MOTD). I believe this is /etc/motd on Centos.

share|improve this answer

I assume you mean ssh.

Modify /etc/issue as root to put whatever text you wish.

share|improve this answer
silly me :) yeah i meant ssh, but /etc/issue contains only the centos release version.. and when i log in i get more details about the packagers and last login info and so on – Yaniv Nov 4 '09 at 0:37
Probably pulling from /etc/motd – MattyB Nov 4 '09 at 0:43

Check out also

Banner /etc/

inside */etc/ssh/sshd_config*: with this you can also display messages before login completes.

share|improve this answer

/etc/motd is the file you are looking for.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.