| Ubuntu: SSH - Change Welcome Message |
|
|
|
| Tech Notes - Linux |
| Written by Rick |
| Wednesday, 24 June 2009 00:00 |
|
Have you ever tired of seeing the standard SSH welcome message (a.k.a. banner)? Does it provide too much information about the system creating a security concern? If your answer to either of these questions is "Yes", then read on. Changing the message is relatively easy. Simply modify motd. The file is located in /var/run on my system. Other information I've found suggests the file is located in /etc. I do have a shortcut from /etc to the file in /var/run so either location may be valid depending upon your release version of Ubuntu. If you also wish to remove the "Last Login" information line, you 'll need to modify one other file (though not recommended). Edit /etc/ssh/sshd_conf. Locate and change the line "PrintLastLog yes" to "PrintLastLog no". Restart the ssh daemon (sudo /etc/init.d/ssh restart).
|




