When you think you’ve succeeded / but something’s missing / means you have been defeated / by greed, your weakness.
Als je nou gewoon de permissies op de keyfile (~/.ssh/authorized_keys) uit mn hoofd zo zet dat die user geen mogelijkheid heeft tot het toevoegen van keys?
Ik heb er geen ervaring mee, maar uit de man page van sshd_config:
... misschien dat je iets kan doen van matchen op username, daarna indien match passwordauth toestaan?Match Introduces a conditional block. If all of the criteria on the
Match line are satisfied, the keywords on the following lines
override those set in the global section of the config file, un-
til either another Match line or the end of the file.
The arguments to Match are one or more criteria-pattern pairs.
The available criteria are User, Group, Host, and Address. The
match patterns may consist of single entries or comma-separated
lists and may use the wildcard and negation operators described
in the PATTERNS section of ssh_config(5).
The patterns in an Address criteria may additionally contain ad-
dresses to match in CIDR address/masklen format, e.g.
``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask
length provided must be consistent with the address - it is an
error to specify a mask length that is too long for the address
or one with bits set in this host portion of the address. For
example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively.
Only a subset of keywords may be used on the lines following a
Match keyword. Available keywords are AllowTcpForwarding,
Banner, ChrootDirectory, ForceCommand, GatewayPorts,
GSSAPIAuthentication, HostbasedAuthentication,
KbdInteractiveAuthentication, KerberosAuthentication,
MaxAuthTries, MaxSessions, PasswordAuthentication,
PermitEmptyPasswords, PermitOpen, PermitRootLogin,
RhostsRSAAuthentication, RSAAuthentication, X11DisplayOffset,
X11Forwarding, and X11UseLocalHost.
Hier zal ik binnenkort eens naar gaan kijken, bedanktvanaalten schreef op woensdag 22 oktober 2008 @ 17:14:
Ik heb er geen ervaring mee, maar uit de man page van sshd_config:
[...]
... misschien dat je iets kan doen van matchen op username, daarna indien match passwordauth toestaan?
When you think you’ve succeeded / but something’s missing / means you have been defeated / by greed, your weakness.