Ondroid HC1 with SSD - SFTP-Problem when share on SSD (via plugin)

    • OMV 4.x
    • Ondroid HC1 with SSD - SFTP-Problem when share on SSD (via plugin)

      Hi,

      first of all thank you for all the great work. Recently I purchased an Ondroid HC1 and attached a SSD. It boots from the SD, but when I try to create via SFTP-Plugin a Share on the SSD and create an sftp only user the connection closes.

      There is also no log because there is a problem with the plugin.

      Should chroot work with the plugin if the share isn't on the system partition ( system partition on sd card, share on ssd) or do I need to manually set it up and use bind?

      Thanks you.
    • integros wrote:

      There is also no log because there is a problem with the plugin.

      Should chroot work with the plugin if the share isn't on the system partition ( system partition on sd card, share on ssd) or do I need to manually set it up and use bind?
      I use this plugin and have no issues. Since you can't put a shared folder on the system partition, the plugin is meant to work with shared folders on the data drivers. If the connection closes right away, The user either doesn't have permissions or isn't in the correct group (sftp-access).
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Thank you for your answer. Did the following (via webinterface)

      - flashed the new image
      - mounted the ssd
      - created a user (sftpuser - sftp-access, users)
      - created a share on the ssd (chroot - drwxrwsrwx+ 2 root root 4.0K Sep 13 05:13 chroot) - it is listed in /sharedfolders

      - checked the access list (sftp-setting) and everything is ok/enabled - AllowGroups is disabled

      But when I try to sftp now, I get the error:

      debug1: Authentication succeeded (password).
      Authenticated to 192.168.1.16 ([192.168.1.16]:222).
      debug2: fd 6 setting O_NONBLOCK
      debug1: channel 0: new [client-session]
      debug2: channel 0: send open
      debug1: Requesting no-more-sessions@openssh.com
      debug1: Entering interactive session.
      debug1: pledge: network
      packet_write_wait: Connection to 192.168.1.16 port 222: Broken pipe

      The post was edited 5 times, last by integros ().

    • Did somebody recently install OMV 4 (most recent image, not necessarily on a Odroid) and try to setup sftp?

      Tried it now several times and I always get the same errors.

      When I try to look at the sftp logs, I get also an error:

      Source Code

      1. Failed to open the log file (filename=/var/log/openmediavault-sftp.log).
    • Still Broken Pipe. sftp-log is empty.

      I'm starting to wonder if it's an odroid problem (u-boot?) because I tried armbian (stretch, bionic) and omv 4. And no matter what I tried (with SSD, only with SD-card, ...) the same problem.

      Since I've used chroot sftp on a mac and a RPi (with an actual Rasbian-Image), I'm running out of ideas.
    • integros wrote:

      When I try to look at the sftp logs, I get also an error:
      Click the clear button in the log viewer. The log viewer doesn't create (and shouldn't) the log file if it doesn't exist.

      integros wrote:

      I'm starting to wonder if it's an odroid problem (u-boot?)
      This has nothing to do with the device. The plugin uses the same ssh package that you ssh into the system with. I just tried it on a fresh install and an arm board (renegade) and it works fine. Not sure why your setup isn't working. What filesystem is the data drive?
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      integros wrote:

      I'm starting to wonder if it's an odroid problem (u-boot?)
      This has nothing to do with the device. The plugin uses the same ssh package that you ssh into the system with. I just tried it on a fresh install and an arm board (renegade) and it works fine. Not sure why your setup isn't working. What filesystem is the data drive?
      I am sorry to bother you, because I absolutely appreciate what you guys are doing.

      But I've installed the minimal ubuntu image provided by hardkernel and within a few minutes I was able to create a chroot'ed sftp access for a new user (similar to the chroot on the RPi3 or Mac Mini). Guess it's an armbian Issue and I guess I need to bother the guys on the armbian forum.

      The post was edited 1 time, last by integros ().

    • integros wrote:

      Guess it's an armbian Issue and I guess I need to bother the guys on the armbian forum.
      You aren't bothering me :) My renegade is running armbian.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:


      My renegade is running armbian.
      I never questioned that armbian normally supports all these things. All I am saying is that on the Ondroid HC1 I can't chroot sftp.

      Therefore I installed the minimal Ubuntu image from Hardkernel, made all the necessary changes via cli, manually moved the system to the ssd (SD-Card is still required for the boot process) and I am still able to chroot an sftp user.
    • integros wrote:

      I never questioned that armbian normally supports all these things. All I am saying is that on the Ondroid HC1 I can't chroot sftp.
      An odroid and the renegade have the same userland. They just have a different kernel (and uboot). I don't think the kernel is causing this. I will find my xu4 when I have a chance to try this. Can you post the output of: omv-showkey sftp
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      integros wrote:

      I never questioned that armbian normally supports all these things. All I am saying is that on the Ondroid HC1 I can't chroot sftp.
      Can you post the output of: omv-showkey sftp
      I'll do it in a couple of days. Ok? Need to reinstall OMV first.

      gderf wrote:

      What are the ownership and permissions on the chroot, starting with the drive mountpoint and going deeper to the chroot?
      Even the /home folder (by default with root:root) was not chroot'able.