Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 268Reputation: 268Reputation: 268
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, 01:45 PM   #2
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, 01:07 AM   #3
Senior Member
Registered: Mar 2010
Distribution: Slackware
Posts: 1,910

Original Poster
Rep: Reputation: 268Reputation: 268Reputation: 268
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.


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

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

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