我只是像以前一样设置我的新服务器,这次我无法使用我的私钥登录。
服务器是 ubuntu 11.04。我已经设置了以下 ssh 密钥目录。
root@myserv: ls -la
drwx------ 2 root root 4096 Sep 23 03:40 .ssh
Run Code Online (Sandbox Code Playgroud)
在 .ssh 目录中,我已经完成了 chmod 640 authorized_keys
这是 ssh 连接回溯:
OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to [my.server.ip] [[my.server.ip]] port 22.
debug1: Connection established.
debug1: identity file /Users/john/.ssh/id_rsa type -1
debug1: identity file /Users/john/.ssh/id_rsa-cert type -1
debug1: identity file /Users/john/.ssh/id_dsa type 1
debug1: identity file /Users/john/.ssh/id_dsa-cert type -1 …
Run Code Online (Sandbox Code Playgroud)