(via www.debian-administration.org)
The upcoming version of OpenSSH (4.8p1 for the GNU/Linux port) features a new configuration option : ChrootDirectory. This has been made possible by a new SFTP subsystem statically linked to sshd.
OpenSSH SFTP chroot() with ChrootDirectory
Submitted by sandip on Tue, 06/11/2013 - 10:20
(via www.debian-administration.org) The upcoming version of OpenSSH (4.8p1 for the GNU/Linux port) features a new configuration option : ChrootDirectory. This has been made possible by a new SFTP subsystem statically linked to sshd. |
See AlsoUser loginRecent blog posts
Who's onlineThere are currently 0 users and 2 guests online.
|
ed25519 ssh host key file
If latest install of openssh-server comes up with "Could not load host key: /etc/ssh/ssh_host_ed25519_key" when starting, then create the file via:
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''
give access to certain folders outside chroot
Setup bind mounted directory, to give access to certain folders outside of the chroot path. Example:
mount --bind /var/www/html/htdocs/some/folder /home/chroot/username/some/folder
To mount on boot, edit /etc/fstab:
/var/www/html/htdocs/some/folder /home/chroot/username/some/folder none defaults,bind 0 0