public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Adam Carter <adamcarter3@gmail.com>
To: "gentoo-user@lists.gentoo.org" <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Locking down a user with a shell account and SSH access
Date: Tue, 2 Jul 2013 16:39:44 +1000	[thread overview]
Message-ID: <CAC=wYCF8ec=Aj-QXWPsvrr+S218x3QqmMXe7Wz3GFq3Vv1Km6g@mail.gmail.com> (raw)
In-Reply-To: <CAN0CFw1jGuJ_N+5WEM5yWFspYFadVAxRAtUpzxFGXEsV1YZxOg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 551 bytes --]

> > What about "PasswordAuthentication no"?
>
> Can that be set for a single user?  I have a normal user who needs to
> log in via SSH with a password and a backup user who only needs to run
> rsync via SSH keys.  If not, does the exclamation point in /etc/shadow
> prevent the user from logging in without the SSH key?
>
> - Grant
>
>

# tail -n 5 /etc/ssh/sshd_config
# Example of overriding settings on a per-user basis
#Match User anoncvs
#       X11Forwarding no
#       AllowTcpForwarding no
#       ForceCommand cvs server

Also google scponly

[-- Attachment #2: Type: text/html, Size: 932 bytes --]

  reply	other threads:[~2013-07-02  6:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-01 23:24 [gentoo-user] Locking down a user with a shell account and SSH access Grant
2013-07-01 23:34 ` Neil Bothwick
2013-07-02  6:33   ` Grant
2013-07-02  6:39     ` Adam Carter [this message]
2013-07-02  7:44     ` Alan McKinnon
2013-07-18 16:21       ` Grant
2013-07-18 18:32         ` Alan McKinnon
2013-07-18 19:58 ` Paul Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC=wYCF8ec=Aj-QXWPsvrr+S218x3QqmMXe7Wz3GFq3Vv1Km6g@mail.gmail.com' \
    --to=adamcarter3@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox