我有一台PC sshd服务(192.168.1.1)。
PC包含两个用户user1和user2。
我安装了lxc服务并configuration了一个容器。
我如何configuration192.168.1.1上的SSH服务器连接user2将chrooted到lxc容器。
OpenSSH可能被configuration为只允许特定的用户执行一个特定的命令,方法是将一个stringjoinauthorized_keys文件中的公钥。
这个:
ssh-rsa <key> <key name>
应该改成这个
command="chroot command" ssh-rsa <key> <key name>