LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2003, 10:44 AM   #1
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Rep: Reputation: 30
logs


where can I find the logs from the ssh conection ? or the logs from ftp and sendmail conections ? If the loging system is not started how can I start it ?
 
Old 12-10-2003, 10:47 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
By default, ssh logs will be mixed in with /var/log/messages from what I've experienced.

Usually on most systems system logs are started with the syslogd daemon.
 
Old 12-10-2003, 10:53 AM   #3
dexter2
LQ Newbie
 
Registered: Nov 2003
Distribution: Red Hat Linux
Posts: 7

Rep: Reputation: 0
SSH logs generally, goes into: /var/log/secure, /var/log/messages
Sendmail: /var/log/maillog
FTP: /var/log/xferlog (depends in FTP server)

/etc/init.d/syslogd restart
will log into /var/log/messages

hope this helps,
 
Old 12-10-2003, 12:47 PM   #4
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
how can I figure out that a hosts scans me ?
 
Old 12-10-2003, 03:11 PM   #5
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30

The answer to your original question:
su -
enter root password
cat /var/logs/messages|grep ssh|more (to view all ssh logs)
cat /var/logs/messages|grep ftp|more (to view all ftp logs)
etc, etc, etc

The answer to the scanning question:
Install portsenty.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu logs on, then logs back off generallee5686 Ubuntu 0 10-20-2005 02:11 PM
Firewall logs in logs and terminal... robbow52 Debian 7 11-20-2004 08:13 PM
Firefox logs user out? Where are error logs? case1984 Linux - General 0 10-09-2004 03:22 PM
Separate firewall logs and general logs dominant Linux - General 3 04-20-2004 02:26 AM
Apache logs - ???Linux logs??? mylo2003 Linux - General 3 08-07-2003 05:49 PM


All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration