NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

pgn93's avatar
pgn93
Aspirant
Mar 26, 2019
Solved

Rsync SSH : permission denied

Hi all,

I am trying to save files from my computer (running linux lite) to my ReadyNas 104.

I have created a public key (saved as ~/.ssh/id_rsa.pub) that I have uploaded in the user settings on my NAS (Accounts->user->Settings->SSH->Import public Key).

The user account I configured has R/W access on the network drive. However, when I run the following command :

rsync -r -v -s --protect-args /home/frm/Music/aTagger/ /run/user/1000/gvfs/smb-share:server=flero.local,share=music/aTagger

 

I get a write error message for each of the file it is trying to write. Example below of such message for the file "Coups de vents.jpg" :

rsync: mkstemp "/run/user/1000/gvfs/smb-share:server=flero.local,share=music/aTagger/.Coups de vents.jpg.r2XXu2" failed: Permission denied (13)

If I try to move files the other way around (from the NAS to the computer), it works perfectly. I am therefore probably doing something wrong in the configuration of the write access to the NAS but I am not quite sure what.

Anyone has a clue as to which direction I should be looking into ?

Thanks a lot

pgn93

  • Hi Mark,

    Thanks for your answer. I was trying to copy files on a separate share and I solved the issue.

    After investigation, I found out what I was doing wrong. My Network drive was mounted as anonymous...

    I mounted it under my account (the one I created the authorized key) and it worked like a charm.

    Cheers

    pgn93

2 Replies

Replies have been turned off for this discussion
  • Marc_V's avatar
    Marc_V
    NETGEAR Employee Retired

    Hi pgn93

     

    Welcome to the Community!

     

    Are you trying to copy the files to a Home share? Have you tried it on a non Home share? It would be best to create a separate share and try to transfer to it.

     

     

    Regards

    • pgn93's avatar
      pgn93
      Aspirant

      Hi Mark,

      Thanks for your answer. I was trying to copy files on a separate share and I solved the issue.

      After investigation, I found out what I was doing wrong. My Network drive was mounted as anonymous...

      I mounted it under my account (the one I created the authorized key) and it worked like a charm.

      Cheers

      pgn93

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More