Topic "Unable to View remote directory"

Author Message
lidl
[View user's profile]

Joined: 2003-02-06
Posts: 1
Location: Munich / Germany
I have a problem to connect to our ssh server. Login works fine but reading any directory results in an error:

Quote:
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:

Code:
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Andreas Manschke

Guest


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

Quote:
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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
For list of reasons WinSCP cannot parse directory listing and possible resolutions, see documentation.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License