无法创建目录“//.ssh”:没有这样的文件或目录
Could not create directory '//.ssh': No such file or directory
我 运行 在我的 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).
我认为这与没有公钥有关,所以我尝试通过 运行ning 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.
谁能帮我解决这个问题?
谢谢。
之后:
输入保存密钥的文件 (//.ssh/id_rsa):
输入有效的Windows路径,D:\id_rsa创建私有public密钥对,并将public密钥添加到其他主机已知主机文件
我 运行 在我的 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).
我认为这与没有公钥有关,所以我尝试通过 运行ning 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.
谁能帮我解决这个问题?
谢谢。
之后:
输入保存密钥的文件 (//.ssh/id_rsa):
输入有效的Windows路径,D:\id_rsa创建私有public密钥对,并将public密钥添加到其他主机已知主机文件