Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have SSH access to a server and I have never bothered to use SFTP until now.

I transferred a file using FileZilla to the server. However, the weird thing is that the file doesn't show up when I SSH into the server and do a ls or even a ls -a (just in case).

The vice versa is also true, when I SSH, I am able to see the file I created via SSH access. However, when I fetch the directory listing via SFTP, 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?

I can provide more information if required that might assist in understanding this problem.

share|improve this question

closed as too localized by Gilles, Michael Mrozek Sep 26 '11 at 3:37

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
That makes no sens at all. Are you certain you're looking at the same directory, on the same server? –  Mat Sep 25 '11 at 8:01
    
Yes. I have tried everything I could. –  Ramone Sep 25 '11 at 8:25
3  
Sorry found the problem. It was the wrong server :) –  Ramone Sep 25 '11 at 9:03
    
Don't worry, you're not the first person this has happened to :> –  Mat Sep 25 '11 at 9:04

1 Answer 1

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:

  1. 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.
  2. 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:

  1. ssh to the server.
  2. Create an empty directory. Name it something unique, including a timestamp, e.g. /tmp/fz-hostname-YYYYMMDD-hhmm. cd into that directory.
  3. Use Filezilla to access the directory.
  4. Now we are sure, you access the same directory on the same server using both methods.
  5. From ssh do touch newfile; sync; ls -al. We will see the new file created, with a timestamp.
  6. 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?).
  7. See that you can see the newfile.
  8. Transfer a testfile from local station to the remote location. Double check that the transfer completed.
  9. Do ls -al in ssh session. Verify that you see testfile.

If it still doesn't work, open a bug ticket for Filezilla.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.