无法创建目录';//。ssh';:没有这样的文件或目录

无法创建目录';//。ssh';:没有这样的文件或目录,ssh,ssh-keys,sshd,Ssh,Ssh Keys,Sshd,我在我的Windows机器上运行SSHD,我从 我能够运行SSHD,但是每当我尝试从同一台机器连接时,它就会出现以下错误 C:\Users\fk>ssh fk1@localhost -p 8000 Password authentication Password: Password authentication Password: Password authentication Password: fk1@localhost's password: Permission denied, plea

我在我的Windows机器上运行SSHD,我从

我能够运行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). C:\Users\fk>sshfk1@localhost-p 8000 密码验证 密码: 密码验证 密码: 密码验证 密码: fk1@localhost的密码: 权限被拒绝,请重试。 fk1@localhost的密码: 权限被拒绝,请重试。 fk1@localhost的密码: 权限被拒绝(密码、键盘交互、公钥)。 我认为这与没有公钥有关,所以我试图通过运行ssh-keygen来创建公钥,但它给出了以下错误

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. C:\Users\fk>ssh-keygen 生成公共/私有rsa密钥对。 输入保存密钥的文件(//.ssh/id\u rsa): 无法创建目录“/.ssh”:没有此类文件或目录 输入密码短语(无密码短语为空): 再次输入相同的密码短语: open/.ssh/id_rsa失败:没有这样的文件或目录。 保存密钥失败://.ssh/id\u rsa。 有人能帮我解决这个问题吗

多谢各位

在此之后:

输入保存密钥的文件(//.ssh/id\u rsa):

输入有效的Windows路径D:\id\u rsa以创建专用公钥对,然后将公钥添加到其他主机已知主机文件中:

输入保存密钥的文件(//.ssh/id\u rsa):


输入有效的Windows路径D:\id\u rsa以创建专用公钥对,并将公钥添加到其他主机已知主机文件

无法转到//.ssh/id\u rsa,因为此目录不存在。这就是为什么我要求编写一个存在的路径,如程序要求您“输入保存密钥的文件”后的D:\id\u rsa无法转到//.ssh/id\u rsa,因为此目录不存在。这就是为什么在程序要求您“输入保存密钥的文件”后,我要求编写一个存在的路径,如D:\id\u rsa