ssh 服务端加密算法配置
It has been 493 days since the last update, the content of the article may be outdated.
参考:sshd_config - How to configure the OpenSSH server
常见配置更改
Cryptographic policy
plaintext
1 | Ciphers aes128-ctr,aes192-ctr,aes256-ctr |
Root login
To disable passwords for root, but still allow key-based access without forced command, use:
plaintext
1 | PermitRootLogin prohibit-password |
To disable passwords and only allow key-based access with a forced command, use:
plaintext
1 | PermitRootLogin forced-commands-only |
Verbose logging
plaintext
1 | LogLevel VERBOSE |
AuthorizedKeysFile location
plaintext
1 | AuthorizedKeysFile /etc/ssh/authorized-keys/%u |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Sakaizd's Blog!
评论