开发者

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

开发者 https://www.devze.com 2023-04-12 19:27 出处:网络
I tried to copy a file from one linux server开发者_运维技巧to another Linux server using the below command

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

精彩评论

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

关注公众号