- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- sftp chroot - Red Hat 5.3
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 09:02 AM
тАО08-19-2009 09:02 AM
I added the line: ftpleaps /home/ftpleaps
to the /etc/security/chroot.conf file.
Added the line:
session required pam_chroot.so debug
to the /etc/pam.d/sshd file.
And created the user, ftpleaps that will be using sftp...
Using this ID I can sftp into teh server just fine, but I am still able to change to different directories, I'm not locked into just the home directory...
Any ideas as to what I may be missing ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 12:06 PM
тАО08-19-2009 12:06 PM
Re: sftp chroot - Red Hat 5.3
http://www.minstrel.org.uk/papers/sftp/builtin/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 01:25 PM
тАО08-19-2009 01:25 PM
Re: sftp chroot - Red Hat 5.3
http://v2.robbyt.com/2008/howto/chrooted-sftp-with-openssh-5/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 02:14 PM
тАО08-19-2009 02:14 PM
Solutionhttp://www.dotnux.com/?p=3
And the sshd_configuration in previous links. It works correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 04:44 AM
тАО08-20-2009 04:44 AM
Re: sftp chroot - Red Hat 5.3
[root@mfl-rhel5 i386]# ls -al
total 1004
drwxr-xr-x 2 root root 4096 Aug 20 08:39 .
drwxr-xr-x 9 root root 4096 Mar 17 15:20 ..
-rw-r--r-- 1 root root 272536 Aug 20 08:39 openssh-5.2p1-1.i386.rpm
-rw-r--r-- 1 root root 431979 Aug 20 08:39 openssh-clients-5.2p1-1.i386.rpm
-rw-r--r-- 1 root root 16708 Aug 20 08:39 openssh-debuginfo-5.2p1-1.i386.rpm
-rw-r--r-- 1 root root 269427 Aug 20 08:39 openssh-server-5.2p1-1.i386.rpm
[root@mfl-rhel5 i386]# rpm -Uvh openssh*rpm
error: Failed dependencies:
openssh = 4.3p2-29.el5 is needed by (installed) openssh-askpass-4.3p2-29.el5.i386
[root@mfl-rhel5 i386]# rpm -qa |grep -i openssh
openssh-clients-4.3p2-29.el5
openssh-4.3p2-29.el5
openssh-askpass-4.3p2-29.el5
openssh-server-4.3p2-29.el5
[root@mfl-rhel5 i386]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 05:30 AM
тАО08-20-2009 05:30 AM
Re: sftp chroot - Red Hat 5.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 06:20 AM
тАО08-20-2009 06:20 AM
Re: sftp chroot - Red Hat 5.3
Is there a document for the rest of the setup for sftp chroot for this version of openssh ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 07:04 AM
тАО08-20-2009 07:04 AM
Re: sftp chroot - Red Hat 5.3
http://v2.robbyt.com/2008/howto/chrooted-sftp-with-openssh-5/
Starting with the section "edit sshd_config"
The sections "configure pam_mkhomedir" and below are optionsl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 10:09 AM
тАО08-20-2009 10:09 AM
Re: sftp chroot - Red Hat 5.3
sftp ftpleaps@crulsbx1
ftpleaps@crulsbx1's password:
Connection to crulsbx1 closed by remote host.
Connection closed
I can do an sftp with another ID not in sftponly group and works fine, except that the ID isn't locked to the directory..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 10:14 AM
тАО08-20-2009 10:14 AM
Re: sftp chroot - Red Hat 5.3
never mind, I had an problem, I forgot to change the home directory to be owned by root:root instead of the user.... after that able to get in just fine..