Resin sync error with permission denied


#1

I am trying to use resin snyc in order to sync local changes to the container.

I have added the ssh keys (RSA) in the dashboard, and did

resin login

When I try resin ssh I can successfully ssh into my device, which I believe the SSH keys have been successfully added.

However, when I try to sync using the following command, I get a public key error.

$ sudo resin sync -s . -d /usr/catkin_ws/src
Getting information for device: 4baa6ee5a25625117912cbe7a766239c
Got application container info.
\ Syncing to /usr/catkin_ws/src on 4baa6ee...Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]
Synced /usr/catkin_ws/src on 4baa6ee.
Application container started after failed 'sync'.
resin sync failed. Error: Child process exited with code 255
Child process exited with code 255

If you need help, don't hesitate in contacting us at:

GitHub: https://github.com/resin-io/resin-cli/issues/new
Forums: https://forums.resin.io

Is there an additional process required in order to use resin sync that is not documented?

Thank you in advance,


#16

Could you let us know the version of the following applications on the computer initiating the connection, and the permissions (but not any identifying information) on your keys directory.

  • ssh -V
  • resin version
  • rsync --version
  • ls -la ~/.ssh

#17

I saw the same error when running the command with sudo. I would recommend trying without.