LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-10-2014, 10:12 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Rep: Reputation: 271Reputation: 271Reputation: 271
Why does sshd sometimes log local time, other times UT


I've been inspecting /var/log/secure today. I find that sometimes sshd records the time in local time, other times in universal time (aka CUT, UCT, GMT), sometimes alternating one record after another in response to a single connection. I know that other daemons can also record their records in /var/log/secure but all of these are identified as [sshd].
 
Old 11-08-2014, 12:45 PM   #2
DarrenDrapkin
Member
 
Registered: Aug 2014
Location: Leeds, England
Distribution: Slackware x86 64 version 15.0
Posts: 127
Blog Entries: 3

Rep: Reputation: 27
It is entirely possable that you have several copies of sshd running. It is also possable that you have found a bug in sshd. Have you tried stopping and starting sshd? If you have two or more log entires at the very end of the log about sshd starting, then you have two servers with the same name and should uninstall one of them. This is applies to just about any server not just sshd. There are other posabilities, try man -k sshd. To help others come up with more possabilities can you post some log entries here ?
 
Old 11-09-2014, 12:07 AM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Of course I read the man pages. I have one instance of sshd running. It was pam (password authentication module? - Slackware doesn't have it) which, apparently, sshd calls on this system; it logs local time.
 
  


Reply



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
I don't understand why log timestamps are UTC but date command is local time Rogue45 Linux - Newbie 5 07-19-2013 03:39 PM
How to have a log for sshd? xpucto Linux - Networking 4 06-03-2008 04:37 AM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
sshd: connections times out with putty trashbird1240 Linux - Networking 5 12-17-2006 03:10 AM
SSHD log? itz2000 Linux - Security 6 11-15-2005 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 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
Open Source Consulting | Domain Registration