Librenix  
(Show all SSH articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Tutorial: SFTP chroot user jail with OpenSSH 5.x

Up
vote
Down

The OpenSSH 4.9-5.x updates now include built in jailing. It is still a little confusing, so I have written an update to my former 4.x tutorial.

This tutorial shows how to set up a safe chroot for your users. It offers chroot only and will deny all SSH access. It should only take about thirty minutes from start to finish including package download times if you don't already have them.

This method is safer because it doesn't allow the users access to any commands such as a compiler or the perl interpreter.
You will not need to install any extensive libraries or copy hundreds of files for functional use.

The user will be 'jailed' to any directory you choose which will mean that they will see "/home/username/" as just "/" disabling them from seeing your entire server or others users files while still using SECURE FTP.
 read more | mail this link | score:7084 | -GO ILLINI, May 6, 2008
More Sysadmin articles...

Buy Art Online with Satisfaction Guaranteed

admin headlines

Upgrade OpenSUSE 12.2 to 12.3

Managing user accounts in GNOME 3 or Ubuntu

Linux Iptables Examples

Set up Oneiric PV DomU at Xen 4.1.2 Ubuntu Oneiric Dom0 (3.1.0-030100-generic)

Guest session and user management in Ubuntu 11.10

Install OpenVZ on Debian 6

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin