Couldn't read directory: No such file or directory when connecting to a server through sftp
by hienha123 from LinuxQuestions.org on (#5CS4W)
Hello,
I have an issue with "Couldn't read directory: No such file or directory" error when I sftp to a server and run a "ls" command to get a list of files in the folder. Sometime the command would work and other time would return with the error. There are hundred of files sitting in the folder so I think it had to do with permission issue if my guess is correct.
The folder is currently have this permission: drwxrwxr-x
Any suggestion on how to troubleshoot this issue is appreciated.
Thanks,
Hien


I have an issue with "Couldn't read directory: No such file or directory" error when I sftp to a server and run a "ls" command to get a list of files in the folder. Sometime the command would work and other time would return with the error. There are hundred of files sitting in the folder so I think it had to do with permission issue if my guess is correct.
The folder is currently have this permission: drwxrwxr-x
Any suggestion on how to troubleshoot this issue is appreciated.
Thanks,
Hien