I am trying to use scp command to copy the r0.res file from local machine to a remote machine. I entered the following command:
scp -v /etc/drbd.d/r0.res email@example.com
and I obtain this error:
cp '--' '/etc/drbd.d/r0.res' 'firstname.lastname@example.org'
What could cause the command to fail? Many thanks.
P.S.: I have established ssh connection between the machine and I tested it out by creating the drbd.d folder on destination like this:
sudo ssh email@example.com sudo mkdir -p /etc/drbd.d