AlanBarber.Org

Twitter Twitter Updates

Dear lord my personal trainer destoyed me. Every muscle in my body is in pain!
Sat Feb 4, 2012 11:02 AM
So apparently I cannot run a 30,000 line, 8mb sql insert script from SSMS. I guess its too big to handle. Lame!
Fri Feb 3, 2012 3:53 PM
@abramcookson its been years for me. Sad though bc theres a new drummer but still will be cool to go see.
Fri Feb 3, 2012 10:30 AM
My concert plans so far... Jane's Addiction, The Black Keys, Company of Thieves, The Naked & Famous, Local H and Foster the People.
Fri Feb 3, 2012 10:19 AM

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