I tried to copy a file from one linux server to another Linux server using the below command
scp sampleweb.rar [email protected] /
It gave me this error under putty console .
cp: cannot create regular file `/sampleweb.rar': Permission denied
cp: cannot create regular file `/[email protected]': Permission denied
Assuming you are trying to write to the / directory on the remote machine, it looks like you are missing a colon:
scp sampleweb.rar [email protected]:/
Without the colon, scp
asssumes this is a local copy, and falls back to cp
on the local machine, as indicated by your error messages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With