Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

4 Answers 4

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
1  
Probably pulling from /etc/motd –  MattyB Nov 4 '09 at 0:43

Check out also

Banner /etc/issue.net

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

 
discard

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.