SFTP connect on Samsung My files

  • hi


    I've been messing around for two days, I decided to write a solution, maybe it will help someone


    Maybe someone will improve this instruction or give advice.


    how to set up an SFTP server in the standard Samsung explorer "My files" - "Network storage"


    if it's not there or it's not needed here, I won't be offended by deleting the topic.


    -------------------------------------------------- -------------------------------------------------- ----------


    1) Install the "UserLANd" application (Linux emulator) on your phone


    2) Select the Debian repository.


    3) After reaching the command line, update the repository:

    Code
    sudo apt update 

    4) Install OpenSSH to generate keys:


    Code
    sudo apt install openssh-server

    5) Generate the key in ECDSA format: (this is the only format in which the private key works in My files)

    Code
    ssh-keygen -t ecdsa -b 521 -m PEM -f /Documents/phoneKey

    6) Go to the Documents folder:

    Code
    cd Documents

    cd.. - transition to the upper level.


    ls -alh — view folders and files in the folder where we are currently located.


    pwd — to see which folder we are currently in.


    7) Setting up access rights:

    Code
    chmod 600 phoneKey
    chmod 644 phoneKey.pub

    8 ) Copy the public key to the server:

    Code
    ssh-copy-id -i phoneKey.pub  <your_users>@<ip_server>


    (a doubtful point, because OMV theoretically does not accept this format, but the key is installed)


    9) Conversion to OpenSSH for OMV:


    Code
    ssh-keygen -e -f Documents/phoneKey.pub

    10) Copy the key, paste it into the user's public key in OMV.


    public-key.png













    11) if you have the "Rsyslog" (Enable syslog logging) check mark in the SFTP plugin settings

    - You will have a folder "/dev" with the file "log" (what is "rsyslog" for? read on the Internet)

    to remove this folder:

    * you need to disable "rsyslog" in the plugin settings

  • ryecoaaron

    Hat das Thema freigeschaltet.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!