Use '\012' as the end of the SSH banner line, not '\n'.
[u/mdw/putty] / contrib /
drwxr-xr-x   ..
-rwxr-xr-x 4834 accel.pl
-rwxr-xr-x 4644 kh2reg.py