• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    SFTP access to Neuron directories

    General Discussion
    2
    12
    3714
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mikeardy last edited by

      Hi,
      for an application, I need to access the directory of the Neuron to write down remotely a file in a folder.
      I found this:

      https://www.raspberrypi.org/documentation/remote-access/ssh/sftp.md

      With Filezilla it works but I get always access denied when I tried to modify a file (copy it into a directory, delete it, rename it). I can only copy it from Neuron to my local PC and no more.

      Could someone help me?
      Thanks

      T 1 Reply Last reply Reply Quote 0
      • T
        tomas_hora administrators @mikeardy last edited by

        @mikeardy There are two possible cuses:

        1. If you are using the UniPian Neuron OS (or Raspbian) you are trying to upload the file to a folder where the user has no write permission.
        2. If you are using Mervis OS, then the FileSystem is not mounted for writing and you need to mount it for writing first by mount -o remount,rw /
        1 Reply Last reply Reply Quote 0
        • M
          mikeardy last edited by mikeardy

          I'm using UniPian Neuron OS 2018-03-07 with CODESYS.
          I have been written correctly a CODESYS PRG capable to write and read files into the root directory.
          Why is it not possible with SFTP with regular access?

          T 1 Reply Last reply Reply Quote 0
          • T
            tomas_hora administrators @mikeardy last edited by

            @mikeardy As what user are you logged in when connected to sftp and to what foler are you trying to write the file?

            M 1 Reply Last reply Reply Quote 0
            • M
              mikeardy @tomas_hora last edited by

              @tomas_hora I configured Filezilla to connect in SFTP with user: pi and password: raspberry, the same I used to connect via SSH Putty terminal.

              T 1 Reply Last reply Reply Quote 0
              • T
                tomas_hora administrators @mikeardy last edited by

                @mikeardy and the folder?

                1 Reply Last reply Reply Quote 0
                • M
                  mikeardy last edited by

                  Hi,
                  no matter about the folder.
                  If you suggest me a specific folder I could write a CODESYS sketch to be directed in that folder. I think.

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    tomas_hora administrators @mikeardy last edited by

                    @mikeardy what about /tmp/

                    M 2 Replies Last reply Reply Quote 0
                    • M
                      mikeardy @tomas_hora last edited by

                      @tomas_hora said in SFTP access to Neuron directories:

                      @mikeardy what about /tmp/

                      IT'S FANTASTIC!
                      IT WORKS!
                      Thanks!

                      1 Reply Last reply Reply Quote 0
                      • M
                        mikeardy @tomas_hora last edited by

                        @tomas_hora said in SFTP access to Neuron directories:

                        @mikeardy what about /tmp/

                        There is an issue! When the Neuron gets power outage and restarts again the /tmp/ folder is restored to its default that is an empty folder and in this way the config file is lost...
                        I need the file must remain available in the SD.

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          tomas_hora administrators @mikeardy last edited by

                          @mikeardy Yes, that is the purpose of /tmp aka Temporary folder. You can also try /home/pi/...

                          1 Reply Last reply Reply Quote 0
                          • M
                            mikeardy last edited by

                            ok I will try to use the /home/pi/ folder.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post