Cannot create a regular file when copying from one system to another.

I tried to copy a file from one linux server to another linux server using the following command

scp sampleweb.rar pavan@50.45.555.90 /

He gave me this error in the putty console.

cp: cannot create regular file `/sampleweb.rar': Permission denied
cp: cannot create regular file `/pavan@50.45.555.90': Permission denied
+5
source share
1 answer

Assuming you are trying to write to a directory / on a remote computer, it looks like you are missing a colon:

scp sampleweb.rar pavan@50.45.555.90:/

Without a colon scp, it is considered to be a local copy and is returned to cpthe local computer as indicated by your error messages.

+9
source

All Articles