今天用ssh登录了远程机器,本来只想试试ssh无密码登录的。然后按照着 http://www.shangxueba.com/jingyan/121401.html 运行了:
[root@localhost .ssh]# cat id_rsa.pub > authorized_keys
[root@localhost .ssh]# vi /etc/ssh/sshd_config
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
[root@localhost .ssh]# service sshd restart
然后用ssh登录的时候就显示
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
....
登不上远程机器,改不了配置,有什么解决办法么?
[root@localhost .ssh]# cat id_rsa.pub > authorized_keys
[root@localhost .ssh]# vi /etc/ssh/sshd_config
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
[root@localhost .ssh]# service sshd restart
然后用ssh登录的时候就显示
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
....
登不上远程机器,改不了配置,有什么解决办法么?