tsimmons
When connecting using SFTP, the timestamps are not being set properly when uploading. I am connecting with SFTP (Server is running OpenSSH on Windows) and I have the favorite properties set thusly:
Transfer->Files->Keep Modify Time
Upload = Enable
Download = Enable
Server to Server = Enable
Transfer->Files->Keep Create Time
Upload = Enable
Download = Enable
Server to Server = Enable
Downloads appear to work fine. Uploads always get stamped with the current time, not the timestamp of the uploaded file. Both machines are in the same timezone and the favorite's timezone is set in the favorite properties as well.
Here is a log of a transfer ...
[16:40:07] SmartFTP v3.0.1026.8
[16:40:07] Resolving host name "..."
[16:40:07] Connecting to .... Port: 22
[16:40:07] SSH-2.0-OpenSSH_5.2
[16:40:07] Starting SSH session. Remote Id: "SSH-2.0-OpenSSH_5.2"
[16:40:07] SSH protocol version reply. Client Id: "SSH-2.0-SmartFTP"
[16:40:09] Computing session key.
[16:40:09] Key Exchange Algorithm: diffie-hellman-group-exchange-sha256
[16:40:10] Key exchange completed.
[16:40:10] Host Key Algorithm: ssh-rsa
[16:40:10] Client to Server Encryption: aes256-ctr
[16:40:10] Server to Client Encryption: aes256-ctr
[16:40:10] Session MAC: hmac-sha1
[16:40:10] Client to Server Compression: none
[16:40:10] Server to Client Compression: none
[16:40:10] Authentication request. Method: "none"
[16:40:10] Server supported authentications: publickey,password,keyboard-interactive
[16:40:10] Authentication request. Method: "password"
[16:40:10] User authentication successful.
[16:40:11] SSH session established.
[16:40:11] Connected to ...
[16:40:11] RTT: 273.003 ms
[16:40:11] SFTP protocol version 3
[16:40:11] Detected Server Software: OpenSSH
[16:40:27] Resolving path "XXXXXXXXX".
[16:40:27] Path successfully resolved.
[16:40:27] Reading directory "XXXXXXXXX".
[16:40:28] 6797 bytes transferred. (10.8 KB/s) (609 ms)
[16:40:28] Directory listing complete.
[16:40:51] Getting attributes of "XXXXXXXX/testfile.txt".
[16:40:51] Attributes successfully obtained.
[16:40:58] The operation has been added to the Transfer Queue. Check the Transfer Queue for the status.
[16:41:02] Getting attributes of "XXXXXXXXX/testfile.txt".
[16:41:02] Attributes successfully obtained.
The problem is the localfile testfile.txt has one timestamp, the server file is stamped with the time it was uploaded.
Transfer->Files->Keep Modify Time
Upload = Enable
Download = Enable
Server to Server = Enable
Transfer->Files->Keep Create Time
Upload = Enable
Download = Enable
Server to Server = Enable
Downloads appear to work fine. Uploads always get stamped with the current time, not the timestamp of the uploaded file. Both machines are in the same timezone and the favorite's timezone is set in the favorite properties as well.
Here is a log of a transfer ...
[16:40:07] SmartFTP v3.0.1026.8
[16:40:07] Resolving host name "..."
[16:40:07] Connecting to .... Port: 22
[16:40:07] SSH-2.0-OpenSSH_5.2
[16:40:07] Starting SSH session. Remote Id: "SSH-2.0-OpenSSH_5.2"
[16:40:07] SSH protocol version reply. Client Id: "SSH-2.0-SmartFTP"
[16:40:09] Computing session key.
[16:40:09] Key Exchange Algorithm: diffie-hellman-group-exchange-sha256
[16:40:10] Key exchange completed.
[16:40:10] Host Key Algorithm: ssh-rsa
[16:40:10] Client to Server Encryption: aes256-ctr
[16:40:10] Server to Client Encryption: aes256-ctr
[16:40:10] Session MAC: hmac-sha1
[16:40:10] Client to Server Compression: none
[16:40:10] Server to Client Compression: none
[16:40:10] Authentication request. Method: "none"
[16:40:10] Server supported authentications: publickey,password,keyboard-interactive
[16:40:10] Authentication request. Method: "password"
[16:40:10] User authentication successful.
[16:40:11] SSH session established.
[16:40:11] Connected to ...
[16:40:11] RTT: 273.003 ms
[16:40:11] SFTP protocol version 3
[16:40:11] Detected Server Software: OpenSSH
[16:40:27] Resolving path "XXXXXXXXX".
[16:40:27] Path successfully resolved.
[16:40:27] Reading directory "XXXXXXXXX".
[16:40:28] 6797 bytes transferred. (10.8 KB/s) (609 ms)
[16:40:28] Directory listing complete.
[16:40:51] Getting attributes of "XXXXXXXX/testfile.txt".
[16:40:51] Attributes successfully obtained.
[16:40:58] The operation has been added to the Transfer Queue. Check the Transfer Queue for the status.
[16:41:02] Getting attributes of "XXXXXXXXX/testfile.txt".
[16:41:02] Attributes successfully obtained.
The problem is the localfile testfile.txt has one timestamp, the server file is stamped with the time it was uploaded.