Hello,
I've got a RedHat ES5,3 server with Directadmin. One of our customers wants to use SFTP so I edit the /usr/local/directadmin/custombuild/options.conf:
jail=yes
and run:
./build all_jail
After this i run the script jail/jail_user.sh username. When i connect with SSH it works great but when I connect with sftp I get:
Server sent command exit status 1
This is my secure log file:
sshd[24539]: Accepted password for username from "ipaddress" port 58026 ssh2
sshd[24539]: pam_unix(sshd:session): session opened for user username by (uid=0)
sshd[24541]: subsystem request for sftp
sshd[24539]: pam_unix(sshd:session): session closed for user username
This is /etc/passwd:
username:x:505:506::/home/username:/bin/jail
This is /home/username/etc/passwd:
username:x:505:506::/home/username:/bin/bash
This is the end of /etc/ssh/sshd_config:
Subsystem sftp /usr/libexec/openssh/sftp-server
AllowUsers admin
AllowUsers username
Can someone help me out?
Thanks!
I've got a RedHat ES5,3 server with Directadmin. One of our customers wants to use SFTP so I edit the /usr/local/directadmin/custombuild/options.conf:
jail=yes
and run:
./build all_jail
After this i run the script jail/jail_user.sh username. When i connect with SSH it works great but when I connect with sftp I get:
Server sent command exit status 1
This is my secure log file:
sshd[24539]: Accepted password for username from "ipaddress" port 58026 ssh2
sshd[24539]: pam_unix(sshd:session): session opened for user username by (uid=0)
sshd[24541]: subsystem request for sftp
sshd[24539]: pam_unix(sshd:session): session closed for user username
This is /etc/passwd:
username:x:505:506::/home/username:/bin/jail
This is /home/username/etc/passwd:
username:x:505:506::/home/username:/bin/bash
This is the end of /etc/ssh/sshd_config:
Subsystem sftp /usr/libexec/openssh/sftp-server
AllowUsers admin
AllowUsers username
Can someone help me out?
Thanks!