fix(ssh/telnet): resolve terminal hang on passive consoles and legacy devices#1236
Open
eduardomozart wants to merge 3 commits intognmyt:mainfrom
Open
fix(ssh/telnet): resolve terminal hang on passive consoles and legacy devices#1236eduardomozart wants to merge 3 commits intognmyt:mainfrom
eduardomozart wants to merge 3 commits intognmyt:mainfrom
Conversation
Added a function to trigger a passive SSH session by sending a newline character, ensuring compatibility with silent devices.
Added triggerPassiveSession function to initiate SSH/Telnet sessions.
This reverts commit 9f63577.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



📋 Description
This PR fixes a critical issue where the terminal fails to initialize or open when connecting to passive environments, such as the Serial Consoles (OCI/AWS/GCP), Terminal Servers (Digi/Cyclades), and Legacy Network Switches (Cisco/HP/3Com).
The Problem: The "Silence Deadlock"
Nexterm's connection logic (both for SSH and Telnet) appears to be reactive, often waiting for the first stream of data from the remote host to fully transition the UI from a "Connecting" state to an active session.
Many serial-over-network bridges and legacy devices remain completely silent until they receive an initial "Enter" from the client. This creates a deadlock:
The Solution: Proactive Session Trigger
Inspired by Netmiko's session establishment mechanism (
_test_channel_read), I've implemented atriggerPassiveSessionhelper inConnectionService.js.How it works:
\x0A).\x1B[2J\x1B[H) to clear the terminal. This ensures that the user starts with a clean, professional-looking terminal.Safety & Performance
🚀 Changes made to ...
✅ Checklist
🔗 Related Issues