嗯,同事电脑弄了个公钥,然后终端登录服务器就提示:

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

都不给输入密码的机会,找了下,这样就可以输入密码了:

ssh -o PreferredAuthentications=password 127.0.0.1

需要默认的话,改下配置:

sudo -i
vim /etc/ssh/ssh_config
#移除两条注释的#号
RSAAuthentication yes
PasswordAuthentication yes

Related Posts: Mac ssh Permission denied (publickey,gssapi-with-mic,password) 无法输入密码解决办法 :

avatar