You are not logged in.

#1 2009-08-21 13:22:35

dragos240
Member
Registered: 2009-05-23
Posts: 189

Openssh-chroot package does not exist.

I also checked the AUR, not there. I need to chroot my ssh server, so that users can only use a few commands.

Offline

#2 2009-08-21 13:27:44

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Openssh-chroot package does not exist.

openssh can do this itself. (and for sftp its simple)

Last edited by Pierre (2009-08-21 13:31:26)

Offline

#3 2009-08-21 15:16:15

dragos240
Member
Registered: 2009-05-23
Posts: 189

Re: Openssh-chroot package does not exist.

Pierre wrote:

openssh can do this itself. (and for sftp its simple)

Really? How so, and how can I set this up?

Offline

#4 2009-08-21 16:01:39

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Openssh-chroot package does not exist.

man sshd_config wrote:

ChrootDirectory
              Specifies  a path to chroot(2) to after authentication.  This path, and all its components, must be root-owned directories that are not writable by any
              other user or group.

              The path may contain the following tokens that are expanded at runtime once the connecting user has been authenticated: %% is  replaced  by  a  literal
              '%', %h is replaced by the home directory of the user being authenticated, and %u is replaced by the username of that user.

              The  ChrootDirectory must contain the necessary files and directories to support the users' session.  For an interactive session this requires at least
              a shell, typically sh(1), and basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4), stderr(4),  arandom(4)  and  tty(4)  devices.   For  file
              transfer  sessions using ``sftp'', no additional configuration of the environment is necessary if the in-process sftp server is used (see Subsystem for
              details).

              The default is not to chroot(2).

Offline

Board footer

Powered by FluxBB