[Bug 587] ssh returns non-zero return code but appears to work

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jun 7 08:34:59 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=587





------- Additional Comments From markus at openbsd.org  2003-06-07 08:34 -------
this works fine for me:



rm -f /tmp/ls2
while date; do
        ssh -oBatchMode=yes -A localhost \
                scp localhost:/bin/ls /tmp/ls2
        if [ $? -ne 0 ]; then
                echo ssh failed
        fi
        cmp /tmp/ls2 /bin/ls
        if [ $? -ne 0 ]; then
                echo scp failed
        fi
        rm -f /tmp/ls2
done




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list