Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old November 12th, 2004   #1
mrdud
First Cup of Ubuntu
 
Join Date: Nov 2004
Location: Grand Rapids, Michigan
Beans: 2
Send a message via AIM to mrdud
Keeping sshd locked

All right first off, I'd like to state that I'm some what paranoid. I use ssh and I have created a simple script that parses the /var/log/auth.log for any information pertaining to sshd.

I also added the AllowUsers <username> line to my /etc/ssh/sshd_config file (multiple users separated with spaces). Lowered the LoginGraceTime to 30 seconds, and installed Firestarter and use that to block any offending IP addresses.

Now for the help part. I'm lazy but paranoid. So I know I can always throw it in cron.hourly and have that run but I got control issues too. I want to know whats happening NOW not 50 minutes later.

Well aside from that my windows back ground has really hindered me on trying to make my little script. I was wondering if anyone knew of a way to add in checks for the date so it will only post the relevant information for that day. Also if anyone else has any other information besides leaving a root terminal open or typing my password a few times a day.

Heres the little bugger any other information/tips will be awsome!

Code:
# File to parse the logfile and to print out any ssh info
#/bin/bash
cat /var/log/auth.log |grep sshd >> sshd.txt |vi sshd.txt

Last edited by mrdud; November 12th, 2004 at 02:10 AM..
mrdud is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:55 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry