Errors when trying to SCP (list directories for Panther OS X)

Advertisement

inkhead
Joined:
Posts:
1

Errors when trying to SCP (list directories for Panther OS X)

As soon as I get connected to OS X Panther with WinSCP it gives directory error listings:

Unexpected directory listing line "drwxr-xr-x 19 ckizer ckizer 646 17 Jul 07:30 .".
Operation aborted


Here is my listing with SSH:

[Court-Kizers-Computer:/Users/ckizer] root# ls -al
total 48
drwxr-xr-x 19 ckizer ckizer 646 17 Jul 07:30 .
drwxrwxr-t 6 root wheel 204 25 Jun 00:56 ..
-rw-r--r-- 1 ckizer ckizer 3 25 Jun 00:37 .CFUserTextEncoding
-rwxr-xr-x 1 ckizer ckizer 12292 17 Jul 07:30 .DS_Store
drwx------ 2 ckizer ckizer 68 16 Jul 21:37 .Trash
-rw------- 1 ckizer ckizer 8 25 Jun 08:27 .bash_history
drwxr-xr-x 2 ckizer ckizer 68 1 Jul 01:19 .java
drwxr-xr-x 4 ckizer ckizer 136 13 Jul 18:53 .jpi_cache
drwxr-xr-x 3 ckizer ckizer 102 1 Jul 18:59 .mplayer
drwx------ 3 ckizer ckizer 102 5 Jul 19:54 .ssh
drwxr-xr-x 6 ckizer ckizer 204 16 Jul 21:37 Desktop
drwx------ 14 ckizer ckizer 476 16 Jul 21:37 Documents
drwx------ 38 ckizer ckizer 1292 12 Jul 19:20 Library
drwx------ 3 ckizer ckizer 102 25 Jun 00:37 Movies
drwx------ 52 ckizer ckizer 1768 15 Jul 00:55 Music
drwxrwxrwx 4 ckizer ckizer 136 2 Jul 23:05 Myriad Pro
drwx------ 104 ckizer ckizer 3536 16 Jul 04:04 Pictures
drwxr-xr-x 4 ckizer ckizer 136 25 Jun 00:37 Public
drwxr-xr-x 5 ckizer ckizer 170 25 Jun 00:37 Sites

Can you fix your program to allow it to work properly

Please contact me via email.

Reply with quote

Advertisement

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

Re: Errors when trying to SCP (list directories for Panther OS X)

Date format in your listing is not compatible with WinSCP. It expectes standard english format like 'Jul 17 07:30' instead of yours '17 Jul 07:30'. Try to change this or use SFTP, which does not have this kind of problems.

Reply with quote

markusiseli
Guest

Unexpected directory listing line error

I have a similar error when trying to connect to a machine (socrates.icsl.ucla.edu, 128.97.90.195, SunOS socrates 5.5.1 Generic_103640-40 sun4u sparc SUNW,Ultra-2), but the date seems to be ok in my case:

Unexpected directory listing line "drwxr-xr-x 32 iseli 4096 Jul 24 12:45 .".
Operation aborted

I also heard, that if a banner or welcome message is displayed, this could be the problem. Or is it the prompt which asks for the terminal type?
With ssh I get:

Last login: Thu Jul 24 12:43:41 2003 from user-11205dn.dsl

******************************************************************************
socrates Solaris 2.5.1
******************************************************************************

You have mail.

Hello iseli, welcome to socrates.

Please confirm (or change) your terminal type.
TERM = (xterm)
Erase set to Backspace
stty crt -tabs
iseli@socrates[+31]

THANKS

Reply with quote

markusiseli
Guest

Unexpected directory listing line error

I forgot to add the log to my previous message:
. --------------------------------------------------------------------------
. WinSCP Version 3.1.0 (Build 165)
. Login time: Monday, July 28, 2003 6:27:17 AM
. --------------------------------------------------------------------------
. Session name: iseli@socrates
. Host name: socrates (Port: 22)
. User name: iseli (Password: Yes, Key file: No)
. Transfer Protocol: SCP
. SSH protocol version: 2; Compression: No
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping interval: 0 sec (0 = off); Timeout: 15 sec
. SSH Bugs: A,A,A,A,A,A,A,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: /bin/bash, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: Yes, Ign LS warn: Yes, Scp1 Comp: Yes
. --------------------------------------------------------------------------
. Looking up host "socrates"
. Connecting to 128.97.90.195 port 22
. Server version: SSH-1.5-1.2.31
. We claim version: SSH-1.5-PuTTY-Local: Jul 14 2003 13:14:02
. Using SSH protocol version 1
. Received public keys
. Host key fingerprint is:
. 1024 38:83:c3:dc:3e:de:66:b3:7e:75:8e:5e:12:97:e5:de
. Encrypted session key
. AES not supported in SSH1, skipping
. Using Blowfish encryption
. Trying to enable encryption...
. Initialised Blowfish encryption
. Installing CRC compensation attack detector
. Successfully started encryption
. Sent username "iseli"
. Sending password with camouflage packets
. Sent password
. Authentication successful
. Started session
. --------------------------------------------------------------------------
. Using SCP protocol
. Doing startup conversation with host.
. Skipping host startup message (if any).
> echo "WinSCP: this is end-of-file:0"
< WinSCP: this is end-of-file:0
. Detecting variable containing return code of last command.
. Trying "$status".
> echo "$status" ; echo "WinSCP: this is end-of-file:0"
< WinSCP: this is end-of-file:0
. Trying "$?".
> echo "$?" ; echo "WinSCP: this is end-of-file:0"
< 0
< WinSCP: this is end-of-file:0
. Return code variable "$?" selected.
. Clearing all aliases.
> unalias "echo" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "pwd" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "cd" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "ls" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "groups" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "scp" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "rm" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "mv" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "mkdir" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "chmod" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "chgrp" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "chown" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "unset" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "unalias" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "alias" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "ln" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "%s" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
. Clearing national user variables.
> unset "LANG" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LANGUAGE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_CTYPE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_COLLATE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_MONETARY" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_NUMERIC" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_TIME" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_MESSAGES" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
. Aliasing LS to display file group.
> alias ls="ls -g" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
. Looking up current user groups.
> groups ; echo "WinSCP: this is end-of-file:$?"
< alwan
< WinSCP: this is end-of-file:0
. Following groups found:
. alwan
. Getting current directory name.
> pwd ; echo "WinSCP: this is end-of-file:$?"
< /u1/icsl/iseli
< WinSCP: this is end-of-file:0
. Listing current directory.
> ls -la ; echo "WinSCP: this is end-of-file:$?"
< total 18972
< drwxr-xr-x 32 iseli 4096 Jul 24 12:45 .
< drwxr-xr-x 11 root 4096 Nov 28 2000 ..
< -rw-r--r-- 1 iseli 22314 Jul 15 15:05 .RealNetworks_RealMediaSDK_60
< -rw-r--r-- 1 iseli 419 Jul 15 15:05 .RealNetworks_RealPlayer_60
< -rw------- 1 iseli 372 Apr 24 10:53 .TTauthority
< -rw------- 1 iseli 400 Jul 21 19:05 .Xauthority
< -rw-r----- 1 iseli 3459 Mar 29 2000 .Xdefaults
< -rwxr----- 1 iseli 1690 Mar 29 2000 .Xinitrc

............... more files here ............

< drwxrwxr-x 2 iseli 4096 Jul 7 11:43 public
< drwxr-xr-x 2 iseli 4096 Mar 5 16:58 tmp
< drwxr-xr-x 10 iseli 4096 May 21 2002 www
< WinSCP: this is end-of-file:0
* (ECommand) Error listing directory "/u1/icsl/iseli".
* Unexpected directory listing line "drwxr-xr-x 32 iseli 4096 Jul 24 12:45 .".
* Operation aborted
. Startup conversation with host finished.

Reply with quote

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

Re: Unexpected directory listing line error

markusiseli wrote:

Unexpected directory listing line "drwxr-xr-x 32 iseli 4096 Jul 24 12:45 .".
Operation aborted
There is group name missing in your listing. Read Requirements. Try also SFTP.

Reply with quote

Advertisement

Guest

Re: Unexpected directory listing line error

Thanks for the reply. :D

No sftp on our server though.
Saw that in bash the command ls -al does not list the group. It should rather be ls -alg. But this is our configuration, since 'man ls' says that ls -l should give the long format (including the group name).

Tried ksh, success, - though copying does not work:
Copying: Command failed with return code 127.
scp is called, but we have only scp2 installed, so I made a symbolic link scp to scp2. Now the error is:
Command failed with return code 1. Guess we have to do some changes on our machines... :roll:

Markus

Reply with quote

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

Re: Unexpected directory listing line error

Anonymous wrote:

Tried ksh, success, - though copying does not work:
Copying: Command failed with return code 127.
scp is called, but we have only scp2 installed, so I made a symbolic link scp to scp2. Now the error is:
Command failed with return code 1. Guess we have to do some changes on our machines... :roll:
WinSCP cannot use scp2. You should install SFTP.

Reply with quote

Advertisement

You can post new topics in this forum