Web Hosting Talk







View Full Version : Display a message to SSH users


TheRazor
10-23-2001, 11:54 AM
I was wondering how/where you configure a message to be displayed to users of ssh when they login?

The Prohacker
10-23-2001, 12:03 PM
Usually /etc/motd

TheRazor
10-23-2001, 12:39 PM
Now for the next question how do I change the prompt to display the server for the prompt? or something else...

Synergy
10-23-2001, 05:02 PM
You mean like

showing the version of OS, etc?

cyansmoker
10-23-2001, 05:31 PM
Originally posted by TheRazor
Now for the next question how do I change the prompt to display the server for the prompt? or something else...

You could really try 'man yourshell', for instance 'man bash' since bash is so popular now. Speaking of bash, all you need is to set PS1 and PS2 for primary and secondary prompts.