in reply to capture scp output

screen will allow you to make sure there is a tty available during unattended execution

screen -L myscript_with_scp_commands

Then look for screenlog.0 in the current working directory