sftp and timezone

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I setup an openssh 5.1p1 server on a RHES 5.2 system.

All my users are sftp-only in chrooted environments using :

Match Group staff,sftponly
         ChrootDirectory %h
         ForceCommand internal-sftp
         AllowTcpForwarding no

everything using running fine exept the time displayed using "ls -l"

As you can see, the using the numeric "ls -ln" version show the correct

fred@server:~$ date
Wed Dec 10 11:04:03 CET 2008
fred@server:~$ sftp xxx
Connecting to xxx..
fred@xxx's password:
sftp> cd public
sftp> mkdir test
sftp> ls -l
drwxr-xr-x    2 1050     1030         4096 Dec 10 10:04 test
sftp> ls -ln
drwxr-xr-x    0 1050     1030         4096 Dec 10 11:04 test

I tried it using several clients and from differents sources so I'm sure
the trouble is at server side. The one hour difference is the exact
difference from GMT and the timezone the server is confireg in

Any idea ?

Best regards,


Site Timeline