LinuxQuestions.org
Register a domain and help support LQ
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 05-16-2008, 08:30 AM   #1
cy163
LQ Newbie
 
Registered: Jun 2007
Posts: 23

Rep: Reputation: 15
file time stamp is wrong with ssh file transfer


when I transfer a file using SSH file transfer protocal from a local machin running Windows 2000 to a server running Linux RedHat Advanced Server 4.0, I found that the file on the server has a wrong time stamp, 8 hours ahead of correct time. However, the local time (both hardware clock and system clock) are correct.

Please help.

Felix
 
Old 05-16-2008, 02:47 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,972
Blog Entries: 11

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
What time-zone are you in?


Cheers,
Tink
 
Old 05-17-2008, 12:20 AM   #3
cy163
LQ Newbie
 
Registered: Jun 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Tinkster thank you for your hint. However, I have checked the time zone (Asia/ShangHai). iT is correct to me.
 
Old 05-17-2008, 05:32 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,972
Blog Entries: 11

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
OK ... and what tool/program are you using to transfer the
files with? Not that I know much about any of the things
that are available for windows, mind you.


Cheers,
Tink
 
Old 05-17-2008, 05:40 AM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Also, is hardware clock on your RedHat box set to UTC or localtime?
 
Old 05-18-2008, 01:31 AM   #6
cy163
LQ Newbie
 
Registered: Jun 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Tinkster View Post
OK ... and what tool/program are you using to transfer the
files with? Not that I know much about any of the things
that are available for windows, mind you.


Cheers,
Tink
Tinkster thank you again.

I use SSH to transfer file
 
Old 05-18-2008, 01:32 AM   #7
cy163
LQ Newbie
 
Registered: Jun 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by raskin View Post
Also, is hardware clock on your RedHat box set to UTC or localtime?

Thank you raskin for response.

No, UTC=false in my case. Does that cause the problem?
 
Old 05-18-2008, 01:39 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,972
Blog Entries: 11

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Quote:
Originally Posted by cy163 View Post
Tinkster thank you again.

I use SSH to transfer file
ssh as in from within cygwin?
 
Old 05-18-2008, 01:40 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,972
Blog Entries: 11

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Quote:
Originally Posted by cy163 View Post
Thank you raskin for response.

No, UTC=false in my case. Does that cause the problem?
Sounds like that might be your 8 hours. Not sure how whatever
program you're using controls the time-stamp, though.
 
  


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
Add time stamp to file minus one day dolphs Linux - General 3 11-07-2007 10:17 AM
file transfer over ssh? jme Linux - Software 5 11-13-2006 01:30 AM
Rename file based on its own date/time stamp airman99 Linux - General 19 09-05-2006 07:52 AM
time stamp for file modification youngstorm Linux - Newbie 2 11-01-2005 03:46 PM
ssh file transfer? Apostasy Linux - Newbie 11 07-30-2004 10:33 PM


All times are GMT -5. The time now is 05:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration