FYI -
For some reason on the snapshot (7/03) vs RC2, there's an issue with ChrootDirectory not being recognized or obeyed.
Basically, I'll remove dropbear use openssh-server and openssh-sftp-server to add users and chroot some of them to a specific folder (USB drive). RC2 and earlier works fine, but the snapshot (tested 7/03) fails when "ChrootDirectory %h" is added to /etc/ssh/sshd_config (it will even fail with "ChrootDirectory /home/username")
Match Group sftp_user
ForceCommand internal-sftp
ChrootDirectory %h
AllowTcpForwarding no
PermitTunnel no
X11Forwarding no
AllowAgentForwarding no
Trying to sftp with ChrootDirectory in /etc/ssh/sshd_config results in this error via command-line:
$ sftp user@10.0.0.1
user@10.0.0.1's password:
Connected to 10.0.0.1.
Couldn't canonicalize: No such file or directory
Need cwd
Trying with FileZilla returns:
Status: Connecting to 10.0.0.1:22...
Status: Connected to 10.0.0.1
Error: Warning: failed to resolve home directory: no such file or directory
Status: Retrieving directory listing...
Command: pwd
Response: Current directory is: "."
Error: Failed to parse returned path.
Error: Failed to retrieve directory listing
Spent all day checking if it was any config changes I made - but everything checked out. Moving back to RC2 immediately resolved the issue. Not sure what the root cause is, just posting here for publicity's sake.
(Last edited by iwrotecode on 5 Jul 2015, 03:56)