Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Locking down a user with a shell account and SSH access
Date: Tue, 02 Jul 2013 06:39:51
Message-Id: CAC=wYCF8ec=Aj-QXWPsvrr+S218x3QqmMXe7Wz3GFq3Vv1Km6g@mail.gmail.com
In Reply to: Re: [gentoo-user] Locking down a user with a shell account and SSH access by Grant
1 > > What about "PasswordAuthentication no"?
2 >
3 > Can that be set for a single user? I have a normal user who needs to
4 > log in via SSH with a password and a backup user who only needs to run
5 > rsync via SSH keys. If not, does the exclamation point in /etc/shadow
6 > prevent the user from logging in without the SSH key?
7 >
8 > - Grant
9 >
10 >
11
12 # tail -n 5 /etc/ssh/sshd_config
13 # Example of overriding settings on a per-user basis
14 #Match User anoncvs
15 # X11Forwarding no
16 # AllowTcpForwarding no
17 # ForceCommand cvs server
18
19 Also google scponly