ssh 服务端加密算法配置
参考:sshd_config - How to configure the OpenSSH server
常见配置更改
Cryptographic policy
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:
1 | PermitRootLogin prohibit-password |
To disable passwords and only allow key-based access with a forced command, use:
1 | PermitRootLogin forced-commands-only |
Verbose logging
1 | LogLevel VERBOSE |
AuthorizedKeysFile location
1 | AuthorizedKeysFile /etc/ssh/authorized-keys/%u |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Sakaizd's Blog!
评论