linux-chroot-jail:为 ssh、sftp 和 vsftp 监禁 Linux 用户的脚本

时间:2021-07-11 11:05:48
【文件属性】:
文件名称:linux-chroot-jail:为 ssh、sftp 和 vsftp 监禁 Linux 用户的脚本
文件大小:7KB
文件格式:ZIP
更新时间:2021-07-11 11:05:48
Shell linux-chroot-* 用于 ssh、sftp 和 vsftp 监禁 Linux 用户的脚本 *用户.sh jailuser.sh 此脚本会在指定用户此后登录服务器时强制执行监禁的 ssh 会话。 用户仅限于$APPS 中指定的命令列表。 它应该适用于大多数 Linux 发行版。 目前已经在 Ubuntu 和 Centos 上测试过了。 用户被监禁的家在/jail/home/user 下将用户的旧 /home 目录备份到/home/user.orig 指定的 $APPS 所需的所有库都会自动复制到 chrooted 环境中。 笔记 脚本更改/etc/ssh/sshd_config以设置ChrootDirectory 。 需要手动重新启动 ssh 服务器才能使更改生效。 以下是对sshd_config所做的更改 Match group jailed
【文件预览】:
linux-chroot-jail-master
----LICENSE(11KB)
----README.md(1KB)
----jailuser.sh(5KB)

网友评论