cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

92
Views
0
Helpful
2
Replies
Beginner

Facing ssh: connect to host port 22: Connection refused Issue on Cisco XR

I have enabled ssh but still I face this issue when trying to login.

I have generated key using  #crypto key generate rsa usage-keys test. 

And after this enabled SSH v2.

But still not able to login.

Here is the output for ##show run | i ssh

Tue Jan 14 09:40:43.714 UTC
Building configuration...
ssh
ssh server rate-limit 600
ssh server v2
ssh server netconf vrf default

 

Please help me resolve the issue. Not sure what I'm I missing here.

Everyone's tags (1)
2 REPLIES 2
Cisco Employee

Re: Facing ssh: connect to host port 22: Connection refused Issue on Cisco XR

check

 

show tcp brief | inc 22

 

make sure port 22 is listening

 

also check control plane to see that it is allowed via inband or out-of-band

 

 

control-plane
management-plane
out-of-band
interface all
allow SSH
!
!

 

Thanks!

 

 

Beginner

Re: Facing ssh: connect to host port 22: Connection refused Issue on Cisco XR

You should also configure.

 

For OOB (thru MgmtEth0/RSP0/CPU0/0 or 1 ports):

control-plane

management-plane

  out-of-band

   interface MgmtEth0/RSP0/CPU0/0

    allow SSH

!

 

For inband (thru your dataplane ports, linke Te 0/0/0/0):

control-plane

management-plane

  inband

   interface TenGigE0/0/0/0

    allow SSH

!

 

For both, you can use both subsections (out-of-band and inband)

 

Please don't forget to generate certificate! Otherwise it won't work. Use this command from exec:

crypto key generate rsa general-keys ssh-keys

 

HTH

 

 

 

  

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here