I have been fiddling with trying to build a Dockerfile and container for the following.

A Alpine Linix image with LFTP, cron, & openssh installed for use with my external server to sync folders.

I have a Alpine Linix VM that I connect with a external server using SSH keys, and a cron task running a LFTP script on schedule.

Any help or pointing me at a container you know of is appreciated.

  • CrackedLinuxISO@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    What do you mean by handling the keyfile?

    You can generate your ssh keys outside of docker and make them available in the container through a mounted directory. You will need to manually copy the public key to your remote host authorized_keys file anyway.

    • NarrativeBear@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      Ahh yes that’s what I was looking to do.

      I was thinking if I already have a key file on the remote and local servers then I may not need shh installed on the docker container to do this setup.