xibbon / LaTerminal

50 stars 2 forks source link

Unable to connect to Cisco IOS-XR routers #89

Open xxiii23 opened 4 months ago

xxiii23 commented 4 months ago

When connecting to a Cisco router that is based on IOS-XR, it is unsuccessful with the following:

Receive Connection error Details: Failed to request pseudo-terminal on the remote host LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED

I have tried disabling SFTP and Agent Forwarding.

Here is the debugging info from the Cisco side, I don’t know how to get this from the la terminal side.

Feb 7 10:24:33.138 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] PID:=27433, ssh child spawned Feb 7 10:24:33.145 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] session_id:=772, rekeytime:=3600, sessionlimit:=64 Feb 7 10:24:33.145 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] do_xml:=0, enable_cbc:=0, hmac_sha_mask:=0, type:=1, sock:=0, version:=2 Feb 7 10:24:33.145 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] Port:=22, Service running Feb 7 10:24:33.145 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] Session_pid:=27433, Session_num:=772 Feb 7 10:24:33.146 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] client_str:=SSH-2.0-libssh2_1.10.1_DEV Feb 7 10:24:33.146 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] Remote-protocol-version:=2.0, Feb 7 10:24:33.146 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] Version Exchange done Feb 7 10:24:33.146 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] Rekey-Interval:= 3600, Rekey Datasize:=1073741824 Feb 7 10:24:33.146 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] Rekey Timer initialized Feb 7 10:24:33.148 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] ecsdsa-nist256:=available, ecdsa-nist384:=available, ecdsa-nist521:=available, rsa:=available, dsa:=available, host key found Feb 7 10:24:33.149 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] Negotiated Alg:=curve25519-sha256, Publickey Alg:=ecdsa-sha2-nistp256, Incoming cipher:=aes256-gcm@openssh.com, Outgoing cipher:=aes256-gcm@openssh.com, Incoming mac:=aes-gcm, Outgoing mac:=aes-gcm Feb 7 10:24:33.246 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] All Packets will be encrypted now Feb 7 10:24:33.246 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] Key exchange successfully done Feb 7 10:24:33.246 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] Started client authentication Feb 7 10:24:33.451 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] Service:=ssh-userauth, service request received from client Feb 7 10:24:33.451 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] Service accept message sent Feb 7 10:24:33.456 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] Msg-Type:=50, Received from client Feb 7 10:24:33.456 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] User:=dave, user-auth request receivedfrom client Feb 7 10:24:33.476 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] Msg-Type:=50, Received from client Feb 7 10:24:33.476 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] User:=dave, Old-User:=dave, user-auth request received from client Feb 7 10:24:33.485 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] Msg-Type:=50, Received from client Feb 7 10:24:33.485 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] User:=dave, Old-User:=dave, user-auth request received from client Feb 7 10:24:33.524 ssh/child25/init 0/RP0/CPU0 t27433 [SId:=772] Userid:=dave, ssh user authenticated successfully Feb 7 10:24:33.528 ssh/child25/traffic 0/RP0/CPU0 t27433 [SId:=772] Chan-id:=1, Channel-type:=session, interactive-shell:=1, channel open msg received Feb 7 10:24:33.532 ssh/child25/traffic 0/RP0/CPU0 t27433 [SId:=772] Chan-id:=1, Channel-req:=env, want-reply:=1, interactive-shell:=1,channel request msg received Feb 7 10:24:33.536 ssh/child25/traffic 0/RP0/CPU0 t27433 [SId:=772] Chan-id:=1, Channel-req:=env, want-reply:=1, interactive-shell:=1,channel request msg received Feb 7 10:24:33.543 ssh/child25/traffic 0/RP0/CPU0 t27433 [SId:=772] msg_type:=93,interactive-shell:=1, msg not supported Feb 7 10:24:33.543 ssh/child25/traffic 0/RP0/CPU0 t27433 [SId:=772] Chan-id:=1, Channel-req:=pty-req, want-reply:=1, interactive-shell:=1,channel request msg received Feb 7 10:24:33.549 ssh/child25/event 0/RP0/CPU0 t27433 [SId:=772] readbytes:=0, Error:=Success(0x0) Feb 7 10:24:33.549 ssh/child25/error 0/RP0/CPU0 t27433 [SId:=772] Exit-code:=16 Feb 7 10:24:33.549 ssh/child25/error 0/RP0/CPU0 t27433 [SId:=772] Exit-code:=25 Feb 7 10:24:33.569 ssh/server/event 0/RP0/CPU0 t7179 [SId:=0] Pid:=27433, Process exited Feb 7 10:24:33.569 ssh/server/event 0/RP0/CPU0 t7179 [SId:=0] Child-Session-Id:=772, Index:=25, Releasing Feb 7 10:24:33.569 ssh/server/event 0/RP0/CPU0 t7179 [SId:=0] Pid:=27433, Exit-Status:=0