Hi Folks,
I am stumped at this issue for hours. I have done all the research I could have, but unfortunately no resolution and I have to start a new post.
SFTP works fine for regular users but fails for jailed users. SSH works for both.
The config file: /etc/ssh/sshd_config has this enabled.
Subsystem sftp /usr/libexec/openssh/sftp-server
this file exists in both locations:
1. /usr/libexec/openssh/sftp-server
2. /chroothome/usr/libexec/openssh/sftp-server
Symptom 1:
When I try to SFTP login with jailed user, an error message comes up:
"File transfer server could not be started or it exited unexpectedly.
Exit value 255 was returned. Most likely the sftp-server is not in the path of the user on the server-side."
I added /usr/libexec/openssh/ to the PATH env var of the jailed user. Didn't make any difference.
Symptom 2:
When I run /chroothome/usr/libexec/openssh/sftp-server with root, it goes into endless state and I have to Ctrl-C it to cancel: According to my research, this is normal behaviour.
If I do the same thing with jailed user: it runs the command without any output and the command prompt is available.
the file permission is:
-rwxr-xr-x root root sftp-server
Any help would be grealty appreciated.
Thanks,
Ims.