编辑这个文件:
/etc/ssh/sshd_config
1 2 3 |
# Change to no to disable s/key passwords #ChallengeResponseAuthentication yes ChallengeResponseAuthentication no |
修改为:
1 2 3 |
# Change to no to disable s/key passwords ChallengeResponseAuthentication yes #ChallengeResponseAuthentication no |
然后编辑这个文件
vi /root/.ssh/authorized_keys
将里边的内容删除ssh-rsa前的所有内容
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021