如何使用ssh sshuser@192.168.1.20而不是schroot -c test作为用户sshuser进入schroot环境?
我已经阅读了一系列关于创建被监禁的chroot的web帖子,然后设置SSH来将用户限制在监狱中。我正在尝试按照以下链接设置一个schroot环境:https://wiki.debian.org/Schroot
发布于 2019-05-29 07:00:05
使用sshd的schroot,您必须更改sshd_config
Match User sshuser
# %u is replaced by the username, %h is the full home path
#ChrootDirectory /srv/chroot/test/%u
#ChrootDirectory %h
ForceCommand schroot -c test -u sshuserhttps://unix.stackexchange.com/questions/506801
复制相似问题