SSH RSA key
high1432007
Member Posts: 37 ■■□□□□□□□□
in Juniper
hi all I try to follow JNCIP study guide create the ssh-rsa key for root-auth, hwever getting error below,
error: authorized-key: '1024-key-data-pasted-from-terminal': Must follow SSHv2 or SSHv1 RSA key format
error: statement creation failed: ssh-rsa
anyone can help~~~~urgent tks
error: authorized-key: '1024-key-data-pasted-from-terminal': Must follow SSHv2 or SSHv1 RSA key format
error: statement creation failed: ssh-rsa
anyone can help~~~~urgent tks
Comments
-
tiersten Member Posts: 4,505You're not doing the key right.
If it is a SSHv2 key then:
set system root-authentication ssh-rsa "ssh-rsa blahblahblah...
If it is a SSHv1 key then:
set system root-authentication ssh-rsa "1024 blahblahblah...
In both cases, the part you paste in is exactly what is in the public key file. You don't add ssh-rsa or 1024 to it as it'll have it already there for whatever type of key you're using. -
high1432007 Member Posts: 37 ■■□□□□□□□□Hi Tiersten, am still confused, so will exact command I should?
set system root-authentication ssh-rsa "??????????" -
tiersten Member Posts: 4,505high1432007 wrote: »Hi Tiersten, am still confused, so will exact command I should?
set system root-authentication ssh-rsa "??????????" -
high1432007 Member Posts: 37 ■■□□□□□□□□but when I just follow exactly what book tot(set system root-authentication ssh-rsa “key-data-pasted-from-terminal”, it still prompt me error~~~~~!
-
tiersten Member Posts: 4,505high1432007 wrote: »but when I just follow exactly what book tot(set system root-authentication ssh-rsa “key-data-pasted-from-terminal”, it still prompt me error~~~~~!
-
high1432007 Member Posts: 37 ■■□□□□□□□□Tks, Here you go
# set system root-authentication ssh-rsa "key-data-pasted-from-terminal"
error: authorized-key: 'key-data-pasted-from-terminal': Must follow SSHv2 or SSHv1 RSA key format
error: statement creation failed: ssh-rsa
#run show version
Model: m10i
JUNOS Base OS boot [8.5S3]
JUNOS Base OS Software Suite [8.5S3]
JUNOS Kernel Software Suite [8.5S3]
JUNOS Crypto Software Suite [8.5S3]
JUNOS Packet Forwarding Engine Support (M/T Common) [8.5S3]
JUNOS Packet Forwarding Engine Support (M7i/M10i) [8.5S3]
JUNOS Online Documentation [8.5S3]
JUNOS Routing Software Suite [8.5S3] -
tiersten Member Posts: 4,505high1432007 wrote: »# set system root-authentication ssh-rsa "key-data-pasted-from-terminal"
error: authorized-key: 'key-data-pasted-from-terminal': Must follow SSHv2 or SSHv1 RSA key format -
Chuckzero Registered Users Posts: 1 ■□□□□□□□□□It is a simple two-steps approach to configure RSA key
set system services ssh protocol-version 1 or 2
set system root-authentication ssh-rsa "ssh-rsa 1024 65537"