Comments on: How to Restrict SSH User Access to Certain Directory Using Chrooted Jail https://www.tecmint.com/restrict-ssh-user-to-directory-using-chrooted-jail/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Wed, 10 Jul 2024 11:36:52 +0000 hourly 1 By: Manvir Singh https://www.tecmint.com/restrict-ssh-user-to-directory-using-chrooted-jail/comment-page-1/#comment-2188962 Wed, 10 Jul 2024 11:36:52 +0000 http://www.tecmint.com/?p=24925#comment-2188962 Hello Experts,

I would need experts to let me know. I am making this interactive chroot directory jail for external users and I don’t want to disclose my information like /bin, /etc, /lib64, and /dev.

How can I protect from external interference?

Regards,
Manvir Singh”

]]>
By: Captroot https://www.tecmint.com/restrict-ssh-user-to-directory-using-chrooted-jail/comment-page-1/#comment-1965457 Thu, 16 Feb 2023 09:46:10 +0000 http://www.tecmint.com/?p=24925#comment-1965457 Hello, I want to ask, I want a user with a chroot jail to be able to run the mysql service. I have moved several binary files. however, I get an error like cannot open ‘/var/run/mysqld/mysqld.sock‘ for reading: No such device or address (2) . Please help

]]>
By: JanR https://www.tecmint.com/restrict-ssh-user-to-directory-using-chrooted-jail/comment-page-1/#comment-1960059 Wed, 08 Feb 2023 10:13:26 +0000 http://www.tecmint.com/?p=24925#comment-1960059 Hello Aaron,

What measures are done to prevent the user from adding their own binaries (+ libraries they depend upon) to the chrooted jail to evade the chroot restrictions? They don’t need to put their uploaded libs to {,/usr}/lib64 in order to use them (they can ask the linker to perform the linking explicitly).

]]>
By: Nishith N. Vyas https://www.tecmint.com/restrict-ssh-user-to-directory-using-chrooted-jail/comment-page-1/#comment-1950972 Mon, 23 Jan 2023 11:39:40 +0000 http://www.tecmint.com/?p=24925#comment-1950972 Dear Aaron,

I’ve performed your document steps twice along with the suggestion made by sizeur, but still I’m unable to execute all commands that we’ve added for the particular user.

Upon successful login, I can’t see anything inside /home/.

Please Guide

]]>
By: mohan https://www.tecmint.com/restrict-ssh-user-to-directory-using-chrooted-jail/comment-page-1/#comment-1679974 Fri, 17 Dec 2021 13:19:09 +0000 http://www.tecmint.com/?p=24925#comment-1679974 Hi Aaron, thanks for this valuable write-up and you made it so structured to follow.

I had to change the shell of chroot user to bash by “chsh -s /bin/bash chroot-user“. However Backspace, Tab, Del, and arrow keys not working in the terminal (using ssh). Delete throws a space. Moreover, nano throws “Error opening terminal: xterm-256color.” Please let me if I miss something. Looking for your help. Thanks in advance.

]]>