Topic "Unexpected directory listing line"

Author Message
pitoms

Guest


I get this error when I try connecting by SCP:

'[root@pitoms /]# total 96

If I do a ls -la in putty, I get:
Code:

[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?
Advertisements
pitoms

Guest


Exact error is: Unexpected directory listing line '[root@pitoms /]# total 96'.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Guest




prikryl wrote:
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.


Here is the log (attached).
console-50427@205.185.112.136.log (12.51 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
There's a prompt ([root@pitoms /]# ) 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 http://winscp.net/eng/docs/requirements#remote_environment
Let me know if you resolve this.
_________________
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