Difference between revisions of "Jailkit"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 25: Line 25:
 
  jk_jailuser -m -j /PATH_TO_JAIL USERNAME
 
  jk_jailuser -m -j /PATH_TO_JAIL USERNAME
  
Edit
+
Edit /PATH_TO_JAIL/etc/jailkit/jk_lsh.ini file:
 
  /PATH_TO_JAIL/etc/jailkit/jk_lsh.ini
 
  /PATH_TO_JAIL/etc/jailkit/jk_lsh.ini
 
  [USERNAME]
 
  [USERNAME]

Revision as of 07:28, 5 May 2020


  • Installation: apt install jailkit
  • Configuration: /etc/jailkit/jk_init.ini


jk_check
jk_chrootlaunch
jk_chrootsh
jk_cp
jk_init
jk_jailuser
jk_list
jk_lsh
jk_socketd
jk_update
jk_init -v /PATH_TO_JAIL netutils basicshell jk_lsh ssh scp sftp 
jk_jailuser -m -j /PATH_TO_JAIL YOUR_USERNAME


https://olivier.sessink.nl/jailkit/howtos_sftp_scp_only.html

jk_init -v -j /PATH_TO_JAIL sftp scp
jk_init -v -j /PATH_TO_JAIL jk_lsh
jk_jailuser -m -j /PATH_TO_JAIL USERNAME

Edit /PATH_TO_JAIL/etc/jailkit/jk_lsh.ini file:

/PATH_TO_JAIL/etc/jailkit/jk_lsh.ini
[USERNAME]
paths= /usr/bin, /usr/lib/
executables= /usr/bin/scp, /usr/lib/sftp-server


  -j --jail /YOUR/JAIL_PATH

Activities


Related terms

See also

Advertising: