代码之家  ›  专栏  ›  技术社区  ›  matpie

没有主目录的用户的SSH公钥

  •  5
  • matpie  · 技术社区  · 17 年前

    ~/.ssh/authorized_keys

    /bin/false/

    1 回复  |  直到 17 年前
        1
  •  10
  •   Johannes Weiss    17 年前

    /etc/ssh/sshd_config AuthorizedKeysFile

     AuthorizedKeysFile
             Specifies the file that contains the public keys that can be used
             for user authentication.  AuthorizedKeysFile may contain tokens of
             the form %T which are substituted during connection setup.  The fol-
             lowing tokens are defined: %% is replaced by a literal '%', %h is
             replaced by the home directory of the user being authenticated, and
             %u is replaced by the username of that user.  After expansion,
             AuthorizedKeysFile is taken to be an absolute path or one relative
             to the user's home directory.  The default is
             ``.ssh/authorized_keys''.