trying to get sftp-only logins to work with a public keys

rainer at rainer at
Thu May 24 12:38:38 UTC 2018

Am 2018-05-24 13:09, schrieb tech-lists:
> Hello list,
> I'm trying to get (chrooted) sftp login working with public keys. I
> made a sftp-only user which works fine, and is chrooted. I created a
> .ssh directory with 770 perms (root:user) and put their public key in
> there with 600 perms (user:user) however when trying pubkey auth it
> always falls back to keyboard-interactive (which will succeed when the
> password is applied). I don't know why in key exchange it says it sent
> a packet then didn't. Can anyone help please?

Have you tried chown'ing -R .ssh to the user and the group of the user 
and chmoding -R to 700?

I think these days, ssh is pretty picky about these permissions and 

More information about the freebsd-questions mailing list