How can I log every login via telnet?

Bob Ababurko ababurko at adelphia.net
Thu Apr 7 13:12:07 PDT 2005


Chris wrote:
> On Thu, 7 Apr 2005 LukeD at pobox.com wrote:
> 
>>
>> On Thu, 7 Apr 2005, Anthony Atkielski wrote:
>>
>>> Is there a way to log every login via telnet?
>>
>>
>> The system already records all logins in /var/log/auth.log.
>> You could pull out the telnet entries with grep if those are the only 
>> ones you're interested in.
>> If you're wanting to build your own log then I don't know.
> 
> 
> something like this in /etc/syslog.conf
> 
> !telnetd
> *.*                                             /var/log/telnet.log
> 
> Best regards,
> Chris
> 
> Some come to the fountain of knowledge to drink,
> some prefer to just gargle.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
> 

Could I do something similar for logging scponly?  I have scponly 
installed and would like to log everyones logins and all files that get 
transferred.  I cannot fins any features in the program itself to do the 
logging so I think that syslog is the choice.

Is that all there is to implementing syslog logging or do i need to make 
sure that scponly spits out info that can be logged?

-Bob


More information about the freebsd-questions mailing list