Filter SSH warning noise from stderr, keeping only actionable error lines.
Strips lines like “** WARNING: connection is not using a post-quantum key exchange”.
Parse ls -lhAL output into FileEntry list.
With -L, symlinks are dereferenced so their target type is shown directly.
Recognizes directories via ‘d’ permission prefix. Skips the “total” line.
Broken symlinks are omitted by ls -L (they cannot be transferred anyway).
Run scp in the background with captured stderr for error reporting.
Stderr is piped and captured so errors can be extracted. Progress percentage
is not available because scp only outputs progress to a TTY, not to a pipe.
Stdin is null (askpass handles authentication). Stdout is null (scp has no
meaningful stdout output).