<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Creare_una_chroot_ssh_in_Debian_con_Jailkit</id>
	<title>Creare una chroot ssh in Debian con Jailkit - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Creare_una_chroot_ssh_in_Debian_con_Jailkit"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Creare_una_chroot_ssh_in_Debian_con_Jailkit&amp;action=history"/>
	<updated>2026-05-06T20:00:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Creare_una_chroot_ssh_in_Debian_con_Jailkit&amp;diff=9996&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: Created page with &quot;=Compilazione pacchetto= Sulla macchina di compilazione, preparare il pacchetto  * Installare prerequisiti  sudo  apt-get install build-essential autoconf automake libtool fle...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Creare_una_chroot_ssh_in_Debian_con_Jailkit&amp;diff=9996&amp;oldid=prev"/>
		<updated>2017-05-11T13:18:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Compilazione pacchetto= Sulla macchina di compilazione, preparare il pacchetto  * Installare prerequisiti  sudo  apt-get install build-essential autoconf automake libtool fle...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Compilazione pacchetto=&lt;br /&gt;
Sulla macchina di compilazione, preparare il pacchetto&lt;br /&gt;
&lt;br /&gt;
* Installare prerequisiti&lt;br /&gt;
 sudo  apt-get install build-essential autoconf automake libtool flex bison debhelper binutils-gold python&lt;br /&gt;
&lt;br /&gt;
* Scaricare e scompattare il pacchetto&lt;br /&gt;
 wget https://olivier.sessink.nl/jailkit/jailkit-2.19.tar.gz&lt;br /&gt;
 tar xvzf jailkit-2.19.tar.gz &lt;br /&gt;
 cd jailkit-2.19/&lt;br /&gt;
&lt;br /&gt;
* Modificare il numero della versione per includere la distribuzione:&lt;br /&gt;
 sudoedit debian/changelog &lt;br /&gt;
&lt;br /&gt;
 jailkit (2.19-1+deb8) UNRELEASED; urgency=medium&lt;br /&gt;
&lt;br /&gt;
* Compilare:&lt;br /&gt;
 ./debian/rules binary&lt;br /&gt;
&lt;br /&gt;
* Il pacchetto sarà:&lt;br /&gt;
 ../jailkit_2.19-1+deb8_amd64.deb&lt;br /&gt;
&lt;br /&gt;
* Copiarlo nel repository, o installarlo manualmente&lt;br /&gt;
&lt;br /&gt;
=Creazione della chroot=&lt;br /&gt;
&lt;br /&gt;
* Creare l&amp;#039;utente da far loggare via ssh&lt;br /&gt;
 sudo adduser testuser&lt;br /&gt;
&lt;br /&gt;
* Creare la root dell&amp;#039;ambiente in cui sarà rinchuso l&amp;#039;utente creato&lt;br /&gt;
 sudo mkdir /var/www/testuser&lt;br /&gt;
 sudo chown root: /var/www/testuser&lt;br /&gt;
&lt;br /&gt;
* Creare la jail&lt;br /&gt;
 sudo  jk_init --verbose --hardlink --force --jail /var/www/metrica.it/ basicshell editors extendedshell jk_lsh netbasics netutils ping rsync scp sftp ssh terminfo uidbasics&lt;br /&gt;
&lt;br /&gt;
* Aggiungere lo user nella jail:&lt;br /&gt;
 sudo jk_jailuser -m -j /var/www/testuser testuser&lt;br /&gt;
&lt;br /&gt;
* Impostare l&amp;#039;home path nella jail&lt;br /&gt;
 sudoedit /var/www/testuser/etc/passwd&lt;br /&gt;
&lt;br /&gt;
 testuser:x:1003:1002:,,,:/home/testuser:/bin/bash&lt;br /&gt;
&lt;br /&gt;
* Ora è possibile loggarsi in ssh&lt;br /&gt;
&lt;br /&gt;
=Riferimenti=&lt;br /&gt;
*[http://www.binarytides.com/install-jailkit-ubuntu-debian/ Install Jailkit on Ubuntu/Debian]&lt;br /&gt;
*[https://www.howtoforge.com/how-to-create-a-jailed-ssh-user-with-jailkit-on-debian-wheezy How to create a jailed ssh user with Jailkit on Debian Wheezy]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>