为什么RSA SSHauthentication只能在控制台login后才起作用?

我在我的一台Ubuntu服务器上设置了RSA身份validation,但每次重新启动后,我都无法通过ssh RSAlogin。 为了用sshlogin,我需要先通过控制台login,然后RSA开始工作。 为什么???

以下是我的sshdconfiguration文件以及控制台login和之前的ssh -vv命令的输出。 。

在控制台login之前:

debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /Users/smorhaim/.ssh/smorhaim (0x7ff8d8c242c0) debug2: key: /Users/smorhaim/.ssh/id_rsaadmin (0x7ff8d8c24cf0) debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: /Users/smorhaim/.ssh/smorhaim debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey debug1: Offering RSA public key: /Users/smorhaim/.ssh/id_rsaadmin debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey debug2: we did not send a packet, disable method debug1: No more authentication methods to try. Permission denied (publickey). 

控制台login后:

 debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /Users/smorhaim/.ssh/smorhaim (0x7f91c14242c0) debug2: key: /Users/smorhaim/.ssh/id_rsaadmin (0x7f91c1424ae0) debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: /Users/smorhaim/.ssh/smorhaim debug2: we sent a publickey packet, wait for reply debug1: Server accepts key: pkalg ssh-rsa blen 279 debug2: input_userauth_pk_ok: fp b1:d5:90:43:be:43:52:a9:7f:05:c7:04:86:57:b3:ff debug1: Authentication succeeded (publickey). Authenticated to 10.10.30.151 ([10.10.30.151]:22). 

sshdconfiguration:

 Port 22 Protocol 2 ListenAddress 10.10.30.151 UsePrivilegeSeparation yes SyslogFacility AUTHPRIV PermitRootLogin no PasswordAuthentication no ChallengeResponseAuthentication no UsePAM yes X11Forwarding yes 

我刚刚经历了同样的问题。 事实certificate我的主目录是encryption的。 有趣的是,我不记得select它被encryption的选项,它似乎只是在最近的升级(Ubuntu 10.04.4服务器)后才开始发生,

告诉我你的/home文件系统/目录/挂载,是encryption的,还是从networking上的其他系统挂载? 我已经看到人们使用pam_mount或类似的东西来设置/homeencryption的情况。 然后他们没有正确安装也适用于SSH。