SSH RSA key

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
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.
set system root-authentication ssh-rsa "??????????"
# 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]
set system services ssh protocol-version 1 or 2
set system root-authentication ssh-rsa "ssh-rsa 1024 65537"