Hello,
I am having a problem transferring files to osmc using sftp.
I can connect to the raspberry pi 3 using putty with no problem.
I can connect to the raspberry pi 3 using filezilla sftp port 22 no problem.
I can get a file from osmc to my linux mint PC using sftp no problem.
I cannot put a file to osmc from my PC. I get this error:
Command: cd “/home/osmc/vpn-conf”
Response: New directory is: “/home/osmc/vpn-conf”
Command: put “/home/rick/Hold/fra-a01.ovpn” “fra-a01.ovpn”
Error: /home/osmc/vpn-conf/fra-a01.ovpn: open for write: permission denied
Error: File transfer failed
I thought I might need the ftp app on osmc so I installed that but it didn’t help.
I’m sure I am doing something rong. Can someone help?
Thanks
What is the output of ls -la on /home/osmc? There should be no need for FTP app.
osmc@osmc:/home$ ls -la
total 12
drwxr-xr-x 3 root root 4096 Dec 31 1969 .
drwxr-xr-x 23 root root 4096 Oct 10 14:03 …
drwxr-xr-x 8 osmc osmc 4096 Oct 10 14:30 osmc
I need to see the permissions within the osmc directory. Particularly ls -la ~/
osmc@osmc:~$ ls -la ~/
total 48
drwxr-xr-x 8 osmc osmc 4096 Oct 10 14:30 .
drwxr-xr-x 3 root root 4096 Dec 31 1969 …
-rw------- 1 osmc osmc 63 Oct 10 16:50 .bash_history
-rw-r–r-- 1 osmc osmc 220 Nov 12 2014 .bash_logout
-rw-r–r-- 1 osmc osmc 3515 Nov 12 2014 .bashrc
drwxr-xr-x 7 osmc osmc 4096 Dec 31 1969 .kodi
-rw-r–r-- 1 osmc osmc 675 Nov 12 2014 .profile
drwxr-xr-x 2 osmc osmc 4096 Oct 3 06:43 Movies
drwxr-xr-x 2 osmc osmc 4096 Oct 3 06:43 Music
drwxr-xr-x 2 osmc osmc 4096 Oct 3 06:43 Pictures
drwxr-xr-x 2 osmc osmc 4096 Oct 3 06:43 TV Shows
drwxr-xr-x 2 root root 4096 Oct 10 14:45 vpn-conf
So vpn-conf is owned by root. You are logged in via filezilla as osmc. Just put the file in the home/osmc/ directory and sudo mv fra-a01.ovpn vpn-conf/
by ssh.
You should study up on operating in the linux command line. There are some helpful links here Cheatsheets and Tutorials for users new to Linux based operating systems
ActionA
Thanks very much for the assistance.
I’ve used linux for years but lately GUI only. Guess I need to brush up my cli skills.
Thanks again
Rick.