LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-11-2014, 11:13 AM   #1
mid30
LQ Newbie
 
Registered: Mar 2014
Location: New Mexico
Distribution: Linux Scientitic 6X
Posts: 2

Rep: Reputation: Disabled
sync time and date


I am a total newb at this. How do I fix a time issue to sinc with a server? netfs or something like that? Using Linux Scientitic 6.4
 
Old 03-11-2014, 11:27 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,706

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
Normally this is done by using a reference clock system (usually timestamped by GPS). For SL I believe the utilities are ntpdate and ntpd.

ntpdate sets the time in one direct jump - which can be a bit obnoxious as it can cause files to have been created "in the future". This isn't a real bad issue, but sometimes causes unexpected behavior where file time stamps are used for processing (see "man make" where make determines if a recompile is needed to create an updated object file is needed for a program... if the object file is in the future it never gets rebuilt).

ntpd does things more gradually - and is a daemon that runs continuously to maintain the time. It does this by checking the referenced clock systems, computing a delay based on network measures, then updates the local clock using the "adjtime" system call to ensure a smooth update... and track the local clock so that a known error offset can be used to update the clock even when/if the system gets disconnected from its time references (this is a "drift calculation" that gets recorded).

Both of these should be packages already available to SL, and should be available to your servers (they may already be synchronized to internet time already).
 
Old 03-11-2014, 12:17 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,031

Rep: Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853
Please elaborate on your time issue.
 
Old 03-11-2014, 01:10 PM   #4
mid30
LQ Newbie
 
Registered: Mar 2014
Location: New Mexico
Distribution: Linux Scientitic 6X
Posts: 2

Original Poster
Rep: Reputation: Disabled
my situation is I am behind a firewall at work and we ssh into systems outside of our firewall. Our date and time need to sinc with them in order for the connection to be made. If the time is not the same on both ends it will not allow the ssh connections
 
Old 03-11-2014, 02:58 PM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,706

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
Quote:
Originally Posted by mid30 View Post
my situation is I am behind a firewall at work and we ssh into systems outside of our firewall. Our date and time need to sinc with them in order for the connection to be made. If the time is not the same on both ends it will not allow the ssh connections
ssh in and of itself doesn't care about time.

Some authentication methods do - Kerberos specifically. If the clock is more than 1 to 2 minutes off it will refuse authentication.

As for needing time sync, you should have the information now.
 
  


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
How can I sync my server's time with a certain date server and have it check itself abefroman Linux - Server 4 07-18-2008 05:54 PM
how to convert windows date and time to unix date and time jitupatil_2007 General 8 03-31-2008 05:58 AM
sync time & date slack66 Slackware 3 04-15-2007 11:45 AM
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 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