cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2275
Views
5
Helpful
2
Replies

%SSH-3-PRIVATEKEY: Unable to retrieve RSA private key

ldinocwateen
Level 1
Level 1

HI,

I am having issues while login Cisco 7204 router via SSH, whenever i try to login following message comes, although i have generated crypto keys many times but issue is still prssisting, i would apprecaite if i can find some instant solution for ssh login issue.

Plateform: cisco7204 IOS:c7200-jk9s-mz.123-16a.bin

---

debug

7204HQ-Server2(config)#

7204HQ-Server2(config)#

7204HQ-Server2(config)#

*Mar 1 00:27:33.863: SSH0: starting SSH control process

*Mar 1 00:27:33.867: SSH0: sent protocol version id SSH-1.5-Cisco-1.25

*Mar 1 00:27:33.907: SSH0: protocol version id is - SSH-1.5-Cisco-1.25

*Mar 1 00:27:33.911: SSH0: SSH_SMSG_PUBLIC_KEY msg

*Mar 1 00:27:34.071: SSH0: SSH_CMSG_SESSION_KEY msg - length 112, type 0x03

*Mar 1 00:27:34.075: SSH: RSA decrypt started

*Mar 1 00:27:34.335: SSH: RSA decrypt finished

*Mar 1 00:27:34.335: %SSH-3-PRIVATEKEY: Unable to retrieve RSA private key for

nbdbr.nbd

-Process= "SSH Process", ipl= 0, pid= 121

-Traceback= 61C42B58 61C3F294 61C40AB8 619C6414 619C63F8

*Mar 1 00:27:34.351: SSH0: sending encryption confirmation

*Mar 1 00:27:34.355: SSH0: keys exchanged and encryption on

*Mar 1 00:27:34.599: SSH0: Session disconnected - error 0x07

thanks

Nadeem

2 Replies 2

ldinocwateen
Level 1
Level 1

Hello,

Is anybody have idea for behind this issue, i would appreciate if anyone can shed some light on the issue.

Thanks!

router#sh cry key my rsa
% Key pair was generated at: 10:26:17 PST Nov 8 2016
Key name: router.yourdomain.com

conf t

  router(config)#ip ssh rsa keypair-name  router.yourdomain.com

  end

wr

That should fix it as a workaround for bug id 

new SSH sessions fail after changing the hostname
CSCsa83601 - "new SSH sessions fail after changing the hostname"