Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2018 14:36:54 +0200
From:      rainer@ultra-secure.de
To:        tech-lists <tech-lists@zyxst.net>
Cc:        freebsd-questions@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: trying to get sftp-only logins to work with a public keys
Message-ID:  <5cee3633863f6229b474a0266bf23539@ultra-secure.de>
In-Reply-To: <cf258d06-919e-9bcd-6d85-d68cea358fde@zyxst.net>

index | next in thread | previous in thread | raw e-mail

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 
ownership.




help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5cee3633863f6229b474a0266bf23539>