Pergunta

I created key pair by command

ssh-keygen -t rsa -N "" -f "C:\ssh2\id_rsa"

After I tried to connect to remoted server by command

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

And all finished that server required passphrase

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

But I created key pair without passphrase (-N ""). Why does it require passphrase?

Foi útil?

Solução 2

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

I understand that connection happen, but if I click Enter button, console write me

debug1: No more authentification methods to try 
Permission denied (publickey, hostbased) 

Outras dicas

The command issued specified "" - an empty string! - as the passphrase, not generation with no passphrase. (Simply hit "enter" when prompted for the passphrase and viola!)

To generate a key without any passphrase, do not specify the optional -N (passphrase) option when creating a new key or when requesting to change the passphrase (see -p) ..

.. and may the foil-hat gnomes be merciful to you.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top