[j-nsp] JNCIP Question about ssh-rsa key

Eugeniu Patrascu eugen at imacandi.net
Thu Aug 27 02:51:55 EDT 2009


Matthew Walster wrote:
> 2009/8/20 Nam, Nguyen Hoang <nhnam at j-protek.net>
>
>   
>> When I config ssh-rsa key  begin "1024 ....
>>     
>
>
> The 1024 is there for you, not for the key - the parses already knows it's
> 1024-bit, hence the big long base-64 string.
>
>
>   
>> My question is how to config ssh-rsa to affect the authentication
>>     
>
>
> Just prefix the key with ssh-rsa, for example:
>
>             authentication {
>                 ssh-rsa "ssh-rsa AAAAB...";
>             }
>
> Then it'll work fine. It's counter-intuitive, but if you just paste in the
> whole line from ".ssh/id_rsa.pub" you should be fine.
>
>   
It also works with ssh-dsa keys as the ones that get genereated 
automatically by OpenSSH ssh-keygen:

authentication {
    ssh-dsa "ssh-dss ....rest_of_the_key";
    }




More information about the juniper-nsp mailing list