开发者

cannot create Regular file while copying from one system to another system

I tried to copy a file from one linux server开发者_运维技巧 to another Linux server using the below command

scp sampleweb.rar pavan@50.45.555.90 /

It gave me this error under putty console .

cp: cannot create regular file `/sampleweb.rar': Permission denied
cp: cannot create regular file `/pavan@50.45.555.90': 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 pavan@50.45.555.90:/

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜