"Unexpected directory listing line" with $BLOCK_SIZE (set to human-readable)
Logging in via SCP failed with "Unexpected directory listing line". Output showed that file sizes where shown in human-readable format (e.g.,
Commenting out this line fixed the problem.
This could be fixed by WinSCP unsetting
12K
). Indeed, my bash .profile
had this line:
export BLOCK_SIZE=human-readable
This could be fixed by WinSCP unsetting
$BLOCK_SIZE
on login, maybe as part of the aliases and/or national variables. This would be a great addition.