Trying to scp from pscp (v 0.49) on windows and openssh 3.1p1 on linux 2.2.16 to openssh 3.2.3p1 on linux 2.4.17. Shell is /bin/bash. If last line of .profile in account echo's something 'echo "stuff"', scp fails. Removing the echo line, scp succeeds. This bug does not exist if the target machine is running openbsd 2.9 with the native version of ssh. Tried it with both /bin/sh and /bin/bash. -Tai
so your .profile is broken. you're not supposed to do this for non-interactive session.
It shouldn't matter if ~/.profile (or ~/.bash_profile) echos anything. That file should only be read for a login session. For scp, ~/.profile shouldn't be read, and scp should go on happily with life. Perhaps your setup reads ~/.profile from ~/.bashrc or ~/.kshrc? If a non-login session has shell startup files that print anything on stdout or stderr, then you create problems for scp.
can't put anything into RCP stream. closing.
Mass change of RESOLVED bugs to CLOSED