SSH to user home directory?

Status
Not open for further replies.

macki_b

Cadet
Joined
Jan 16, 2017
Messages
8
Hi!
I able to ssh to root of my nas but how do you SSH to a specified user and directory? I want to get to a specified directory direct when i ssh the nas without having acces to other files on the system. It does not help that the selected user has a specified path in the user setup.
/macki_b
 
Last edited by a moderator:

macki_b

Cadet
Joined
Jan 16, 2017
Messages
8
When i use the command sftp:// in Kodi (to add media files)i end up in the root of the nas. I want to specify a directory.
 
Joined
Dec 2, 2015
Messages
730
sftp allows the directory to be specified as part of the command. It's been years since I had to do that, so I won't guess at the required syntax. man sftp has the gory details.

scp and rsync are another options.
 
Status
Not open for further replies.
Top