AlanBarber.Org

Join the Love Revolution

Twitter Twitter Updates

Follow me on TwitterTwitter

Monday, March 22, 2010

Setting PreLogin Banner on SSH Server

If you are running your own server I’m sure you’ve thought about setting your own login banner for SSH connections. This can be handy to post any important information such as service notices or a legal warning before a user logs in. You can see a sample login banner below in this screen shot.

SSH PreLogin Banner

This is extremely easy to setup

Step 1: Login in as root and navigate to “/etc/ssh”.

Step 2: create a file named “sshd-banner” using your editor of choice.

Step 3: create your banner content and save the file.

Step 4: open “sshd_config” for editing.

Step 5: Add the following line to your config file “Banner /etc/ssh/sshd-banner” and save.

Step 6: Restart the sshd server. On a linux server this would be “/etc/init.d/sshd restart”

Feel free to log back into your server to test.

Posted by AlanBarber on 03/22/2010 at 07:26 PM
Bookmark and Share Computers & TechnologyBSD / Linux • (0) CommentsPermalink
Page 1 of 1 pages