Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

OS: CentOS 5.3, with openssh 4.3p2

Trying to set 'chroot' in ssh shell, but openssh version prior to 4.8 doesn't take below settings. yum update openssh open up to version 4.3 which is quite old. Doesn't CentOS support openssh 4.8 or up? If that's the case, how to set chroot with openssh 4.3? or is it better to just using FTP? My purpose is limit SFTP or FTP access to certain folder, not root folder. Thanks!

Match group sftponly
         ChrootDirectory /home/%u
         X11Forwarding no
         AllowTcpForwarding no
         ForceCommand internal-sftp
share|improve this question

1 Answer 1

If you want to use openssh's sftp you will need to update your openssh binaries. Centos doesn't provide an "official" repo with an 4.8> version, so you will have to compile/install it your self, or find a 3rd party repo that has it.

share|improve this answer
    
this link has a howto :binblog.info/2009/02/27/packaging-openssh-on-centos –  Iraklis Mar 18 '10 at 7:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.