- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- System Administration
- >
- sftp chroot - Red Hat 5.3
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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..
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-20-2009 10:32 AM
08-20-2009 10:32 AM
Re: sftp chroot - Red Hat 5.3
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP