SSHD works fine but how do I enable the SFTP Subsystem in Redhat 5.2 Enterprise Linux? It seems to have a older version of SSHD that doesn't support some of the usual directives like Match or ChrootDirectory . So, does anyone have an example of how to do this on Redhat 5.2 (or CentOS 5.2?) ??
The file /usr/libexec/openssh/sftp-server is permissions 755.
I tried both of these in my /etc/ssh/sshd_config file:
#Subsystem sftp /usr/libexec/openssh/sftp-server
Subsystem sftp internal-sftp
But neither of them work. My psftp says:
psftp> open 000.000.00.00
login as: root
root@000.000.00.00's password:
bash: line 2: exec: sftp-server: not found
Fatal: unable to initialise SFTP: could not connect
psftp>
Best Answer
Your SSH is most likely version 4.2, all that SFTP stuff is in version 4.9 from what I can tell. You will need to compile a newer version. The 5.2 RHEL server here is showing 4.2 for the OpenSSH version.