Unable to View remote directory

Advertisement

lidl
Joined:
Posts:
1
Location:
Munich / Germany

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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.

Reply with quote

Andreas Manschke
Guest

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

Reply with quote

Advertisement

You can post new topics in this forum