Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

ASR9K ssh public key import

I'd like to login ASR9001 using ssh RSA public key authentication.

So I tried to import ssh key but the command in the manual didn't work.

I've referred http://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k_r4-3/security/configuration/guide/b_syssec_cg43xasr9k/b_syssec_cg43asr9k_chapter_011.html#task_1104725.

The command 

crypto key import authentication rsa general-keys

didn't work. My router shows like below:

RP/0/RSP0/CPU0:A9K-1#crypto key import authentication rsa ?
  WORD  Path to RSA pubkey file

There is no 'general-keys' argument.

Also I've uploaded ssh public key using ftp, and tried to specify key file path.

RP/0/RSP0/CPU0:A9K-1#crypto key import authentication rsa disk0:/test.pub
Specified RSA bit size is not supported. Cannot execute the command : Invalid argument

My key size is 1024 bit.

 

Does any one know how to import ssh public key to ASR9001?

 

Thanks.

Everyone's tags (1)
197
Views
0
Helpful
0
Replies