Results 1 to 3 of 3
Thread: scponlyc connecting problems
Enjoy an ad free experience by logging in. Not a member yet? Register.
scponlyc connecting problems
I've got a Debian 4 with scponlyc chrooting but cannot connect with the chrooted account. Connecting to a account not chrooted works fine so it must be something sticky with scponlyc. No errors but no connect with FileZilla and this comes up with WinSCP:
Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
What should I do?
Found a sollution to this problem:
I had a account that could connect but those that were created after could not connect and the difference in those directories was that the folder /dev did not exist.
The sollution is:
mknod -m 666 /your/chroot/dir/dev/null c 1 3
- Join Date
- Nov 2009
- Atlanta, Georgia, USA
scponlyc doesn't connect
I had this problem as well. For others struggling with it, the symptom is that scponlyc starts as it should, shown in the logs, but sftp-server disconnects with no message. Apparently sftp-server tries to write to /dev/null and cannot.
I'm running on CentOS, and trying mknod to create a /dev/null special got "operation not permitted."
I was able to get it working by making a link to the real /dev/null from within the chrooted environment. So:
ln /dev/null null
I (think I) understand the security implications of making links from within a chrooted environment to the outside, but /dev/null seems safe. (I hope so!)
I hope this helps someone.