jeroenpeeters / docker-ssh

SSH Server for Docker containers ~ Because every container should be accessible
GNU General Public License v2.0
638 stars 89 forks source link

How to call rsync to the container? #29

Closed namgivu closed 7 years ago

namgivu commented 7 years ago

I have successfully shh connect to the container using your great tool docker-ssh image via RSA key authentication.

Though, I failed to rsync my files to upload them to the container as this sample rsync call

rsync -chazvPk  -e "ssh -i /path/to/sshKey -p 122333" /path/to/files/source user@remoteip:/path/to/files/destination

Please help me to make a successful rsync command. Thank you!

namgivu commented 7 years ago

I found a solution to rsync to container here https://github.com/nabeken/docker-volume-container-rsync Will this be the answer for us?

namgivu commented 7 years ago

Confirmed the container for rsync service mentioned at https://github.com/jeroenpeeters/docker-ssh/issues/29#issuecomment-313331281 works great!