in reply to Problem with Net::SCP::Expect

Also check the home directory of the user at destination. Check if the bashrc is echo-ing extra lines at login. If so disable the welcome message/extra lines for this particular user. It should work.