I have previously setup a chroot to lock sftp users to their home directory only.
So I have this in sshd_config
Match User theuser ChrootDirectory /home/theuser AllowTCPForwarding no X11Forwarding no ForceCommand internal-sftp
and I'm assuming I need to remove the ForceCommand internal-sftp to allow ssh connection, but this gives me a 'Broken Pipe' message if I try to ssh from theuser.
I then need to allow public key access for that user, and hope to allow them to ssh-copy-id theuser@1234IP..
I am also assuming my answer is something to do with setting - authorizedkeysfile but this seems quite disruptive at best.
Any help is most appreciated - Thanks.