How to set up ssh-only user with minimal privileges?

Petter Adsen petter at synth.no
Thu Apr 2 14:22:59 UTC 2015


I have a short script running from cron on a server running 14.10, that
creates a small backup of essential system files. What I want to do is
set up this script to scp the tarball to another, remote system.

So, I need to create an account on the remote system and set up keys,
but I want this account to only be able to deposit the archive
somewhere, and not be able to get to a shell or do anything else.

Is it enough to set the shell for the user to something
like /bin/false? Will that user still be able to deposit the file via
scp? Is there anything else I can do to lock down that account?

Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150402/7d155d85/attachment.sig>


More information about the ubuntu-users mailing list