You are not logged in.

#1 2016-04-18 17:29:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Recommendation for a semi-public chroot jail via ssh for scp

Goal: Allow access to a semi-public user with access to scp files from /foo/bar from my server.

I found the wiki article on scponly and also this webpage.  They both seem to be about the same amount of work/filesystem overhead.  Is there a more simplistic way to achieve this?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2016-04-19 12:04:09

skiwi
Member
Registered: 2012-11-28
Posts: 32

Re: Recommendation for a semi-public chroot jail via ssh for scp

SCP and SFTP use SSH for communications, so as your the link to the wiki says, just install openssh.
If you want to allow a guest user to access /foo/bar, you can simply create a new user with homedir /foo/bar

A more secure way to do this is to "jail" the user to have /foo/bar as root directory, otherwise he might see all unprotected content.
See also here.

https://wiki.archlinux.org/index.php/SFTP_chroot

Last edited by skiwi (2016-04-19 12:05:22)

Offline

Board footer

Powered by FluxBB