当密钥被接受时,SSHclosures连接

在服务器的auth.log

 MYIP端口61313 ssh2失败的公钥为agladysh

ssh -vvv

 debug1:提供公钥:/Users/agladysh/.ssh/id_rsa
 debug3:send_pubkey_test
 debug2:我们发送了一个publickey包,等待回复
 debug1:服务器接受密钥:pkalg ssh-rsa mix 277
 debug2:input_userauth_pk_ok:fp FINGERPRINT
 debug3:sign_and_send_pubkey
服务器拒绝连接

我三重检查了authorized_keys

我也检查了:

  • hosts.deny文件为我的IP
  • AllowUsers在SSHconfiguration
  • 我在服务器上的默认shell

任何提示如何debugging?

服务器:Ubuntu服务器11.04,客户端:Ubuntu 10.10(密钥从OS X转发,在其他服务器上运行)。

实际的问题是,我的用户在/ etc / shadow中不知何去何从。

我会让这个问题保持开放一段时间,以便人们可以在这里提供更多的故障排除build议。

此外,请确保〜/ .ssh上的权限是700,〜/ .ssh / authorized_keys是600.如果权限不正确,服务器将不会让您使用该密钥。