SSH登錄提示
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
網上搜了一些解決方式但是都沒有完全解決,看問題就是權限問題,所以最終也是通過自己摸索修改權限解決了問題。
解決如下:
修改被登錄的SSH服務器ssh配置,root權限 vi /etc/ssh/sshd_config,修改以下配置
- PermitRootLogin yes
- RSAAuthentication yes
- PubkeyAuthentication yes
- AuthorizedKeysFile .ssh/authorized_keys
- PasswordAuthentication yes
- UsePAM yes
重啓ssh服務,並且設置開機自啓服務
systemctl restart sshd.service
systemctl enable sshd.service