Difference in file listing for SSH and SFTP
Pics or id didn't happen. Sorry, but it is really difficult to believe.
I do not use Filezilla, so I'm not sure how it works, but the only scenario, that I can think of, which would explain the described behaviour would hinge on:
- Filezilla queueing a file for transfer, but showing it as present on the remote site (which would be a bug IMO). Therefore it shows you the file as transferred, before it really is.
- Filezilla not refreshing directory content when a new entry is added. Therefore it would not know about new entries until it refreshed the view. This isn't anything bad, as long, as the refreshing of directory listing work, you claim that it does not. Another bug?
If you are sure, that the problem isn't caused by lack of sleep/low caffeine and/or blood sugar level, then it would help if you documented the whole scenario:
- ssh to the server.
- Create an empty directory. Name it something unique, including a timestamp, e.g. /tmp/fz-hostname-YYYYMMDD-hhmm.
cd
into that directory. - Use Filezilla to access the directory.
- Now we are sure, you access the same directory on the same server using both methods.
- From ssh do
touch newfile; sync; ls -al
. We will see the new file created, with a timestamp. - In Filezilla force a directory listing refresh. I don't know how, maybe there's a "refresh" button, maybe (extreme case) you'll need to close the program and re-open on a different machine (only joking, I don't think they are caching remote directory entries locally; or are they?).
- See that you can see the newfile.
- Transfer a
testfile
from local station to the remote location. Double check that the transfer completed. - Do
ls -al
in ssh session. Verify that you seetestfile
.
If it still doesn't work, open a bug ticket for Filezilla.
Related videos on Youtube
Ramone
Updated on September 18, 2022Comments
-
Ramone almost 2 years
I have
SSH
access to a server and I have never bothered to useSFTP
until now.I transferred a file using
FileZilla
to the server. However, the weird thing is that the file doesn't show up when ISSH
into the server and do als
or even als -a
(just in case).The vice versa is also true, when I
SSH
, I am able to see the file I created viaSSH
access. However, when I fetch the directory listing viaSFTP
, that file is nowhere to be seen!What is the reason for this -- files created via SSH and SFTP are not shown in the directory listing of each other?
-
Mat almost 13 yearsThat makes no sens at all. Are you certain you're looking at the same directory, on the same server?
-
Ramone almost 13 yearsYes. I have tried everything I could.
-
Ramone almost 13 yearsSorry found the problem. It was the wrong server :)
-
Mat almost 13 yearsDon't worry, you're not the first person this has happened to :>
-
-
Xenos almost 8 yearsI was wondering why
ls -l
does not show my.htaccess
while FTP does... I forgot the-a
flag... Thanks!