ssh Permission denied (publickey,gssapi-keyex,gssapi-with-mic).错误的解决

1

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

  修改被登录的SSH服务器ssh配置,/etc/ssh/sshd_config,保证以下配置

1

2

3

4

5

- PermitRootLogin yes

- UsePAM yes

- PasswordAuthentication

- PubkeyAuthentication yes

- AuthorizedKeysFile .ssh/authorized_keys

  重启ssh服务

1

systemctl restart sshd.service

你可能感兴趣的:(ssh)