cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8186
Views
0
Helpful
2
Replies

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

xrohith
Level 1
Level 1

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.

2 Replies 2

tkarnani
Cisco Employee
Cisco Employee

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!

 

 

decode.chr13
Level 1
Level 1

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