SFTP access to Neuron directories
-
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 -
@mikeardy There are two possible cuses:
- 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.
- 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 /
-
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? -
@mikeardy As what user are you logged in when connected to sftp and to what foler are you trying to write the file?
-
@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.
-
@mikeardy and the folder?
-
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. -
@mikeardy what about /tmp/
-
@tomas_hora said in SFTP access to Neuron directories:
@mikeardy what about /tmp/
IT'S FANTASTIC!
IT WORKS!
Thanks! -
@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. -
@mikeardy Yes, that is the purpose of /tmp aka Temporary folder. You can also try /home/pi/...
-
ok I will try to use the /home/pi/ folder.