LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 09: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, 03:47 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
Old 05-17-2008, 01: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, 06:32 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 06:40 AM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Also, is hardware clock on your RedHat box set to UTC or localtime?
 
Old 05-18-2008, 02: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, 02: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, 02:39 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 02:40 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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 11:17 AM
file transfer over ssh? jme Linux - Software 5 11-13-2006 02:30 AM
Rename file based on its own date/time stamp airman99 Linux - General 19 09-05-2006 08:52 AM
time stamp for file modification youngstorm Linux - Newbie 2 11-01-2005 04:46 PM
ssh file transfer? Apostasy Linux - Newbie 11 07-30-2004 11:33 PM

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

All times are GMT -5. The time now is 01:35 AM.

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