Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
生成公钥和私钥后无法连接到SSH_Ssh_Cygwin_Openssh - Fatal编程技术网

生成公钥和私钥后无法连接到SSH

生成公钥和私钥后无法连接到SSH,ssh,cygwin,openssh,Ssh,Cygwin,Openssh,有人能帮忙吗?我已经在windows 7中安装了openssh(版本openssh_6.8p1,OpenSSL 1.0.2a),并生成了公钥和私钥,但是我无法连接到该SSH。如果我使用命令“ssh localhost”,我会收到一个错误“连接被127.0.0.1关闭” 但是,我可以通过“ssh localhost-o PubkeyAuthentication=no”跳过公钥身份验证来连接 命令“ssh-v localhost”的输出 OpenSSH_6.8p1,OpenSSL 1.0.2a 20

有人能帮忙吗?我已经在windows 7中安装了openssh(版本openssh_6.8p1,OpenSSL 1.0.2a),并生成了公钥和私钥,但是我无法连接到该SSH。如果我使用命令“ssh localhost”,我会收到一个错误“连接被127.0.0.1关闭”

但是,我可以通过“ssh localhost-o PubkeyAuthentication=no”跳过公钥身份验证来连接

命令“ssh-v localhost”的输出

OpenSSH_6.8p1,OpenSSL 1.0.2a 2015年3月19日调试1:阅读 配置数据/etc/ssh\u config
debug1:连接到本地主机 [127.0.0.1]端口22。
debug1:已建立连接。
debug1: 标识文件/home/Vinoth/.ssh/id\u rsa类型1
debug1: key\u load\u public:没有这样的文件或目录
debug1:标识文件 /home/Vinoth/.ssh/id\u rsa-cert类型-1
debug1:key\u load\u public:No 此类文件或目录
debug1:标识文件 /home/Vinoth/.ssh/id\u dsa type-1
debug1:key\u load\u public:没有这样的 文件或目录
debug1:标识文件 /home/Vinoth/.ssh/id\u dsa-cert类型-1
debug1:密钥\加载\公共:否 此类文件或目录
debug1:标识文件 /home/Vinoth/.ssh/id\u ecdsa type-1
debug1:key\u load\u public:No 此类文件或目录
debug1:标识文件 /home/Vinoth/.ssh/id\u ecdsa-cert type-1
debug1:key\u load\u public: 没有这样的文件或目录
debug1:标识文件 /home/Vinoth/.ssh/id\u ed25519 type-1
debug1:key\u load\u public:No 此类文件或目录
debug1:标识文件 /home/Vinoth/.ssh/id_ed25519-cert type-1
debug1:启用 协议2.0的兼容模式
debug1:本地版本字符串 SSH-2.0-OpenSSH_6.8
debug1:远程协议版本2.0,远程 软件版本OpenSSH_6.8
debug1:match:OpenSSH_6.8 pat OpenSSH*compat 0x04000000
debug1:SSH2\u MSG\u KEXINIT已发送
debug1:SSH2\u MSG\u KEXINIT收到
debug1:kex:server->client aes128 ctr umac-64-etm@openssh.com无
debug1:kex: 客户端->服务器aes128 ctr umac-64-etm@openssh.com无
1: 需要SSH2\u MSG\u KEX\u ECDH\u回复
debug1:服务器主机密钥: ecdsa-sha2-nistp256 SHA256:4LNPMDKI8UUIQTJYZOC2VXU8X9L PVSN4vykW+axilc
debug1:主机“localhost”已知并与 ECDSA主机密钥。
debug1:在中找到密钥 /home/Vinoth/.ssh/known_hosts:1
debug1:SSH2\u MSG\u发送的新密钥
debug1:需要SSH2\u MSG\u NEWKEYS

debug1:SSH2\u MSG\u NEWKEYS 接收到的
debug1:服务器不允许漫游
debug1: 发送SSH2\u消息\u服务\u请求
debug1:SSH2\u消息\u服务\u接受 已收到debug1:可以继续的身份验证: 公钥、密码、键盘交互
debug1:下一步 身份验证方法:公钥
debug1:提供RSA公钥: /home/Vinoth/.ssh/id\u rsa连接被127.0.0.1关闭


您是否可以编辑您的问题以包含
ssh-v localhost
的输出?额外的输出可能有助于解决问题。我已经添加了输出,请将问题转移到。在这儿。