我的 ssh 服务器中有一个使用 和 创建的非常受限的--no-create-home
用户--shell /bin/false
。我知道我可以为用户的公钥定义authorized_keys
文件。sshd_configs
但是,如何允许该用户进行公钥身份验证,而不需要访问操作系统上的任何文件?
当我yum history list
在 CentOS-7 远程服务器上使用命令时,它会以以下格式显示 yum 历史记录列表:
ID | Command line | Date and time | Action(s) | Altered
--------------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
但如果我这样称呼它:yum history list 1..3
或者yum history list all
它输出:
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
并跳过显示Command Line
对我来说更喜欢可见的列。我如何告诉 yum 显示Command Line
列而不是Login username
?