in reply to Net::SCP::Expect

Can't I do the same thing from the command line if I setup the right keys? the procedure is detailed here and I have used it many times.