SSH to Cisco IOS XR not working

Implemented

SSH to Cisco IOS XR not working

avatar

Hello.
I'm trying to SSH to my Cisco IOS XR router and by using iTerm on Mac or Putty on Windows it works, but using RDM I get disconnected.
Here is the log I got:

[2/14/2022 10:22:27 AM] Devolutions Protocols version: 2021.12.22.1 macOS
[2/14/2022 10:22:27 AM] Starting SSH, verbose level: 2
[2/14/2022 10:22:27 AM] Setting up connection
[2/14/2022 10:22:27 AM] Connecting to port: 22 (IP any)
[2/14/2022 10:22:27 AM] SSH banner: SSH-2.0-Cisco-2.0

[2/14/2022 10:22:27 AM] Sending kex init
[2/14/2022 10:22:27 AM] Received kex init
[2/14/2022 10:22:27 AM] Selected algorithms: ecdh-sha2-nistp256, ssh-ed25519, aes256-ctr, aes256-ctr, hmac-sha2-512, hmac-sha2-512, none, none
[2/14/2022 10:22:27 AM] Sending ECDH kex init
[2/14/2022 10:22:28 AM] Received ECDH kex reply
[2/14/2022 10:22:28 AM] Successfully authentified server
[2/14/2022 10:22:28 AM] Sending new keys message
[2/14/2022 10:22:28 AM] Sending userauth service request
[2/14/2022 10:22:28 AM] Received new keys message
[2/14/2022 10:22:28 AM] Received service accepted message
[2/14/2022 10:22:28 AM] Sending userauth init request
[2/14/2022 10:22:28 AM] Received userauth failure: keyboard-interactive,password
[2/14/2022 10:22:28 AM] Starting interactive authentication
[2/14/2022 10:22:28 AM] Sending userauth interactive request
[2/14/2022 10:22:28 AM] Received userauth info request:
[Prompt->Password: ]
[2/14/2022 10:22:28 AM] Sending userauth interactive response
[2/14/2022 10:22:28 AM] Received userauth success
[2/14/2022 10:22:28 AM] User authenticated successfuly by password interactive
[2/14/2022 10:22:28 AM] Sending session channel open request: 0/-
[2/14/2022 10:22:28 AM] Received channel open confirmation: 0/1 WS 200000/200000 MPS 32000/32000
[2/14/2022 10:22:28 AM] Sending pty request: 0/1 xterm-256color width = 171 height = 64
[2/14/2022 10:22:28 AM] Received channel success: 0/1
[2/14/2022 10:22:28 AM] Sending environment variable request: LANG=en_US.UTF-8 0/1
[2/14/2022 10:22:28 AM] Received channel failure: 0/1
[2/14/2022 10:22:28 AM] The server did not accept the environment variable
[2/14/2022 10:22:28 AM] Sending shell request: 0/1
[2/14/2022 10:22:28 AM] Received channel failure: 0/1
[2/14/2022 10:22:28 AM] Shell request failed
[(-1) Non specific error.]
[2/14/2022 10:22:28 AM] Disconnection in progress
[2/14/2022 10:22:28 AM] Sending channel close request: 0/1

I see that there is some sort of problem with environment setup, but I'm failing to configure entry to work.
Does anyone have some advices?

Best regards,
Ratko

All Comments (7)

avatar

Hi,

We will investigate this and get back in touch with you as soon as possible.

Best regards,

Xavier Fortin

avatar

Hi,

I've got news. It appears that this is a frequent issue with some Cisco devices. You should be able to make it work by checking the "Skip environment variable setup". Here's where you can find this option:



Please, do tell me if it does not resolve your issue.

Best regards,

Xavier Fortin

SkipEnvironmentVariableSetup.png

avatar

Problem is still here.

ratko|M1@/Users/ratko/Desktop% more xr.log
[2/14/2022 3:05:30 PM] Devolutions Protocols version: 2021.12.22.1 macOS
[2/14/2022 3:05:30 PM] Starting SSH, verbose level: 2
[2/14/2022 3:05:30 PM] Setting up connection
[2/14/2022 3:05:30 PM] Connecting to port: 22 (IP any)
[2/14/2022 3:05:30 PM] SSH banner: SSH-2.0-Cisco-2.0

[2/14/2022 3:05:30 PM] Sending kex init
[2/14/2022 3:05:30 PM] Received kex init
[2/14/2022 3:05:30 PM] Selected algorithms: ecdh-sha2-nistp256, ssh-ed25519, aes256-ctr, aes256-ctr, hmac-sha2-512, hmac-sha2-512, none, none
[2/14/2022 3:05:30 PM] Sending ECDH kex init
[2/14/2022 3:05:30 PM] Received ECDH kex reply
[2/14/2022 3:05:30 PM] Successfully authentified server
[2/14/2022 3:05:30 PM] Sending new keys message
[2/14/2022 3:05:30 PM] Sending userauth service request
[2/14/2022 3:05:30 PM] Received new keys message
[2/14/2022 3:05:30 PM] Received service accepted message
[2/14/2022 3:05:30 PM] Sending userauth init request
[2/14/2022 3:05:30 PM] Received userauth failure: keyboard-interactive,password
[2/14/2022 3:05:30 PM] Starting interactive authentication
[2/14/2022 3:05:30 PM] Sending userauth interactive request
[2/14/2022 3:05:30 PM] Received userauth info request:
[Prompt->Password: ]
[2/14/2022 3:05:30 PM] Sending userauth interactive response
[2/14/2022 3:05:30 PM] Received userauth success
[2/14/2022 3:05:30 PM] User authenticated successfuly by password interactive
[2/14/2022 3:05:30 PM] Sending session channel open request: 0/-
[2/14/2022 3:05:30 PM] Received channel open confirmation: 0/1 WS 200000/200000 MPS 32000/32000
[2/14/2022 3:05:30 PM] Sending pty request: 0/1 xterm-256color width = 86 height = 64
[2/14/2022 3:05:31 PM] Received channel success: 0/1
[2/14/2022 3:05:31 PM] Sending environment variable request: LANG=en_US.UTF-8 0/1
[2/14/2022 3:05:31 PM] Received channel failure: 0/1
[2/14/2022 3:05:31 PM] The server did not accept the environment variable
[2/14/2022 3:05:31 PM] Sending shell request: 0/1
[2/14/2022 3:05:31 PM] Received channel failure: 0/1
[2/14/2022 3:05:31 PM] Shell request failed
[(-1) Non specific error.]
[2/14/2022 3:05:31 PM] Disconnection in progress
[2/14/2022 3:05:31 PM] Sending channel close request: 0/1
[2/14/2022 3:05:31 PM] Bytes sent: 2128, Bytes received: 1507
[2/14/2022 3:05:31 PM] Packets sent: 12, Packets received: 11
[2/14/2022 3:05:31 PM] Kex completed: 1
[2/14/2022 3:05:31 PM] Disconnecting

forum image

avatar

Ah! Of course, there appears to be a bug on our side. I'm opening a ticket.

We'll post back when a version is available with the fix.

Best regards,

Xavier Fortin

avatar

Hi ratko,

As of today, RDM 2022.1.3.0 is available and "Skip environment variable setup" should work properly now.

Please, do tell us if it's not the case, or for any other issues.

Best regards,

Xavier Fortin

avatar

Hi Xavier.
Now my SSH connection Cisco IOS-XR works perfectly. Thanks!

Ratko

avatar

Glad to hear it!

Do not hesitate if you have any issue/questions.

Best regards,

Xavier Fortin