I'm currently trying to
scp a file from one server to another, using an ssh key on my local computer.
this is the command I'm currently using:
sudo scp -r -o "ForwardAgent yes" <new_folder> <second-server-path>
and I've followed this github doc to verify that my ssh agent is being forwarded to the second server's terminal.
-o "ForwardAgent yes" comes from this reference, but does not appear on my
man scp reference.
However, after all this, the command still asks for a password (which we are trying to avoid). Any ideas on how to use the ssh forwarding?