没有密码的rsa身份的SSH隧道

时间:2014-05-07 05:10:09

标签: ssh

我通过命令

创建了密钥对
ssh-keygen -t rsa -N "" -f "C:\ssh2\id_rsa"

我尝试通过命令连接到远程服务器

ssh -2 -Nv -L 81:192.168.45.12:8989 proxy@host.ru -p 10022 -i "C:\ssh2\id_rsa"

所有已完成的服务器都需要密码短语

Enter passphrase for key 'C:\ssh2\id_rsa':

但我创建了没有密码的密钥对(-N"")。为什么需要密码?

2 个答案:

答案 0 :(得分:1)

发出指定的命令“” - 一个空字符串! - 作为 密码短语,而不是没有密码短语的代码。 (当提示输入密码和中提琴时,只需点击“输入”!)

要在没有任何密码的情况下生成密钥,请在创建新密钥时或在请求更改密码时 not 指定optional -N (passphrase) option(请参阅{{ 1}})..

..也许箔帽侏儒对你很怜悯。

答案 1 :(得分:0)

Here are log which I give when I try to connect.

我知道连接发生了,但是如果我点击Enter按钮,控制台就会写我

debug1: No more authentification methods to try 
Permission denied (publickey, hostbased) 
相关问题