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

Solution

For list of reasons WinSCP cannot parse directory listing and possible resolutions, see documentation.
Andreas Manschke

Re: Unable to View remote directory

lidl wrote:

I have a problem to connect to our ssh server. Login works fine but reading any directory results in an error:

Error listing directory "/home/alc".
Unexpected directory listing line "insgesamt 289".
Invalid rights description "nsgesamt "



Christoph


I had the same problem but only when using my default shell (tcsh).
Changing that in the tab "Shell" from "Default" to "Enter" with
"/bin/bash" helped for me.


Andreas
martin

Re: Unable to View remote directory

lidl wrote:

The question is how to avoid this? Do I have to use a different ls (what/how)?

Yes, you need to use different ls. You may setup alias in some configuration file.
lidl

Unable to View remote directory

I have a problem to connect to our ssh server. Login works fine but reading any directory results in an error:

Error listing directory "/home/alc".
Unexpected directory listing line "insgesamt 289".
Invalid rights description "nsgesamt "

The reason seems to be that the version of ls used on the server side first writes an additional total value:

remote /home/alc> ls -al

insgesamt 289
drwxr-xr-x   16 alc      users        1320 Jan 29 10:03 .
drwxr-xr-x   15 root     root          368 Jan  9 10:38 ..
-rw-------    1 alc      users           0 Jan  9 10:54 .ICEauthority
-rw-------    1 alc      users         309 Jan  9 11:06 .Xauthority
-rw-r--r--    1 alc      users        5742 Jul 18  2002 .Xdefaults
-rw-r--r--    1 alc      users        1305 Jul 18  2002 .Xmodmap
.
.

The question is how to avoid this? Do I have to use a different ls (what/how)? Or is it possible to customize winscp in a way that it is able to ignore the line?

Christoph