查看/etc/ssh/sshd_config
发现,Listen Address并不是我想要的ip,将其注释掉
sshd restart,结果返回
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
继续修改sshd_config。
RSAAuthentication yes PubkeyAuthentication yes #这两项为打开公钥模式
再次restart,OK
Powered by: 博客园 Copyright © 2024 月光下的狼 Powered by .NET 8.0 on Kubernetes