Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Error Error listing directory '/opt/tomcat' After change to new laptop

Please post session log files from both your and your colleague's computer showing how he can access the folder and you cannot with the same settings.

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Kong

Error Error listing directory '/opt/tomcat' After change to new laptop

Hi I do not have access to my old computer. Yes, I use a SCP file, and I tried change to SFTP. It can't work as well. My colleague have share me his ini configuration file, but it wont work as well, when I want to go to parent directory it gives the same issue.
martin

Re: Error Error listing directory '/opt/tomcat' After change to new laptop

Do you have access to your old computer?
Did you transfer the settings from it?
https://winscp.net/eng/docs/config#transfer
You are likely using different site settings.
Particularly, did you really use SCP protocol? Shouldn't you use SFTP?
Kong

Error Error listing directory '/opt/tomcat' After change to new laptop

After I change to a new laptop and reinstall WinSCP, it give me this error and not able to login as before.
> 2025-11-05 17:19:50.974 unset "LS_BLOCK_SIZE" ; echo "WinSCP: this is end-of-file:$?"
< 2025-11-05 17:19:50.993 WinSCP: this is end-of-file:0
. 2025-11-05 17:19:50.993 Changing directory to "/opt/tomcat".
> 2025-11-05 17:19:50.993 cd "/opt/tomcat" ; echo "WinSCP: this is end-of-file:$?"
< 2025-11-05 17:19:51.018 WinSCP: this is end-of-file:0
. 2025-11-05 17:19:51.019 Getting current directory name.
> 2025-11-05 17:19:51.019 pwd ; echo "WinSCP: this is end-of-file:$?"
< 2025-11-05 17:19:51.040 /opt/tomcat
< 2025-11-05 17:19:51.040 WinSCP: this is end-of-file:0
. 2025-11-05 17:19:51.098 Listing current directory.
> 2025-11-05 17:19:51.098 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
. 2025-11-05 17:20:07.610 Waiting for data timed out, asking user what to do.
. 2025-11-05 17:20:07.610 Asking user:
. 2025-11-05 17:20:07.610 **Host is not communicating for 15 seconds.
. 2025-11-05 17:20:07.610
. 2025-11-05 17:20:07.610 Wait for another 15 seconds?** ()
. 2025-11-05 17:20:55.115 Answer: Abort
. 2025-11-05 17:20:55.115 Attempt to close connection due to fatal exception:
* 2025-11-05 17:20:55.115 **Terminated by user.**
. 2025-11-05 17:20:55.115 Closing connection.
. 2025-11-05 17:20:55.115 Sending special code: 1
* 2025-11-05 17:20:55.782 (EFatal) **Terminated by user.**
* 2025-11-05 17:20:55.782 Error listing directory '/opt/tomcat'.