[scponly] Public-key authentication

Lupe Christoph lupe at lupe-christoph.de
Fri Feb 20 09:56:09 EST 2004


On Thursday, 2004-02-19 at 19:43:37 +0000, Frank Russell wrote:
> How do you setup public-key authentication for a scponly (jailed Chroot 
> account).

> Note i have public-key working fine with a normal shell account. And i have 
> tried puting a authorized_keys file in a root owed .ssh directory scponly 
> account

Put an authorized_keys in $HOME/.ssh for that user. Make sure that
.ssh and authorized_keys are readable by that user. They should
probably be owned by root, so set them to a group the user belongs
to and make both .ssh and authorized_keys group-readable (550 and 440).

Note that SSH happens before scponlyc is executed. So you can test this
with a normal shell. Once it runs, put scponlyc in.

HTH,
Lupe Christoph
-- 
| lupe at lupe-christoph.de       |           http://www.lupe-christoph.de/ |
| "Violence is the resort of the violent" Lu Tze                         |
| "Thief of Time", Terry Pratchett                                       |



More information about the scponly mailing list