2012-11-28 73 views
36

我使用的是Windows 7中的cygwin 64位,我想ssh -vvv localhost無法加載id_rsa作爲RSA1公鑰

OpenSSH_6.1p1, OpenSSL 1.0.1c 10 May 2012 
debug1: Reading configuration data /etc/ssh_config 
debug2: ssh_connect: needpriv 0 
debug1: Connecting to localhost [::1] port 22. 
debug1: Connection established. 
debug3: Incorrect RSA1 identifier 
debug3: Could not load "/home/habdulmalak/.ssh/id_rsa" as a RSA1 public key 

使用ssh-keygen -t rsa生成公鑰和公鑰加入authorized_keys文件。

任何線索?

+1

'/ home/habdulmalak/.ssh/id_rsa'的開頭是什麼樣的? – larsks

+0

這是RSA公鑰的路徑.. /home/habdulmalak/.ssh/id_rsa ?? – Arun

+0

這是id_rsa C:\ cygwin \ home \ myusername \ .ssh的路徑 –

回答

5

正如評論指出,這種錯誤是確定。

您是否檢查/etc/hosts.deny?我的猜測是,你在那裏有

0

sshd: x.x.x.x條目實際上,我明白了爲什麼我得到了同樣的錯誤,是因爲sshd的不是VM服務器我試圖連接到:)運行它固定在概率上運行的原因爲了我。