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: Unexpected directory listing line

There's a prompt ([root@host /]# ) in front of every command output. WinSCP cannot cope with that.
This is possibly due to your environment (variable). If you find out what it is, make sure it is set only for interactive sessions.
See https://winscp.net/eng/docs/requirements#remote_environment
Let me know if you resolve this.
Guest

Re: Unexpected directory listing line

Here is the log (attached).
martin

Re: Unexpected directory listing line

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate 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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
pitoms

Unexpected directory listing line

I get this error when I try connecting by SCP:
Unexpected directory listing line '[root@host /]# total 96'.

If I do a ls -la in PuTTY, I get:
[root@pitoms /]# ls -la

total 96
drwxr-xr-x 21 root root  4096 Aug  1 15:37 .
drwxr-xr-x 21 root root  4096 Aug  1 15:37 ..
-rw-r--r--  1 root root     0 Aug  1 01:50 .autofsck
-rw-r--r--  1 root root     0 Aug  1 01:50 .autorelabel
dr-xr-xr-x  2 root root  4096 Jul 24 16:01 bin
dr-xr-xr-x  3 root root  4096 Jul 24 16:01 boot
-rw-r--r--  1 root root    45 Aug  1 15:37 clientkeys.tgz
drwxr-xr-x  8 root root  2160 Aug  1 01:51 dev
drwxr-xr-x 63 root root  4096 Aug  1 15:49 etc
drwxr-xr-x  2 root root  4096 Sep 23  2011 home
dr-xr-xr-x 12 root root 12288 Aug  1 14:56 lib
drwx------  2 root root  4096 Jul 24 16:00 lost+found
drwxr-xr-x  2 root root  4096 Sep 23  2011 media
drwxr-xr-x  2 root root  4096 Sep 23  2011 mnt
drwxr-xr-x  2 root root  4096 Sep 23  2011 opt
-rwxr-xr-x  1 root root  9345 Jan 22  2013 ovpn_install_script.sh
dr-xr-xr-x 28 root root     0 Aug  1 01:50 proc
dr-xr-x---  3 root root  4096 Aug  1 14:57 root
dr-xr-xr-x  2 root root  4096 Jul 24 16:01 sbin
drwxr-xr-x  2 root root  4096 Sep 23  2011 selinux
drwxr-xr-x  2 root root  4096 Sep 23  2011 srv
drwxr-xr-x  7 root root     0 Aug  1 01:50 sys
drwxrwxrwt  3 root root  4096 Aug  1 14:57 tmp
drwxr-xr-x 12 root root  4096 Jul 24 16:01 usr
drwxr-xr-x 19 root root  4096 Jul 24 16:01 var

Anyone have any ideas?