我在我的Windows机器上运行SSHD,我从http://www.apache.org/dyn/closer.cgi下载
我能够运行SSHD,但每当我尝试从同一台机器连接时,它都会出现以下错误 .
C:\Users\fk>ssh fk1@localhost -p 8000
Password authentication
Password:
Password authentication
Password:
Password authentication
Password:
fk1@localhost's password:
Permission denied, please try again.
fk1@localhost's password:
Permission denied, please try again.
fk1@localhost's password:
Permission denied (password,keyboard-interactive,publickey).
我认为这与没有publickey有关,所以我尝试通过运行ssh-keygen来创建publickey,但是它给出了以下错误 .
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.
任何人都可以帮我解决这个问题吗?
谢谢 .
1 回答
在这之后 :
输入要保存密钥的文件(//.ssh/id_rsa):
输入有效的Windows路径,D:\ id_rsa创建私有公钥对,并将公钥添加到其他主机已知的hosts文件