2015-10-06 62 views
0

我我的Windows機器,這是我從http://www.apache.org/dyn/closer.cgi無法創建目錄「//.ssh」:沒有這樣的文件或目錄

我能夠運行SSHD下載運行SSHD,但每當我試着從同一臺機器連接,它會出現以下錯誤。

 
C:\Users\fk>ssh [email protected] -p 8000 
Password authentication 
Password: 
Password authentication 
Password: 
Password authentication 
Password: 
[email protected]'s password: 
Permission denied, please try again. 
[email protected]'s password: 
Permission denied, please try again. 
[email protected]'s password: 
Permission denied (password,keyboard-interactive,publickey). 

我thoght它涉及到沒有公鑰,所以我試圖運行的ssh-凱基創建公鑰,但它提供了以下錯誤。

C:\Users\fk>ssh-keygen 
Generating public/private rsa key pair. 
Enter file in which to save the key (//.ssh/id_rsa): 
Could not create directory '//.ssh': No such file or directory 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
open //.ssh/id_rsa failed: No such file or directory. 
Saving the key failed: //.ssh/id_rsa. 

任何人都可以幫助我解決這個問題嗎?

謝謝。

回答

3

在此之後:

輸入文件中保存密鑰(//.ssh/id_rsa):

輸入一個有效的Windows路徑,d:\ id_rsa創建公私密鑰對,將公鑰添加到已知主機文件的其他主機

+0

無法前往//.ssh/id_rsa,因爲此目錄不存在。 –

+0

這就是爲什麼我要求編寫一個存在的路徑,如D:\ id_rsa在程序要求您輸入「保存密鑰的文件」 – Eveis

相關問題