Add support for custom SSH ports in remote targets - #140
Merged
Conversation
This change enables Nexus to connect to remote servers that use non-standard SSH ports (e.g., 62420 instead of the default 22). Changes: - Add ssh_port field to TargetConfig schema with default value 22 - Update SSH tunnel creation to include -p flag with configured port - Add SSH port prompt to setup wizard for target configuration - Update connection test commands to use custom SSH port - Improve error messages to show correct ssh command with port flag The implementation maintains backward compatibility - existing configs without ssh_port will default to port 22. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Nov 19, 2025
Merged
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.
Summary
Changes
ssh_portfield toTargetConfigwith default value 22-pflag with configured portnx target addflowTest Plan
nx target addand configure a remote with custom SSH portssh_portdefault to port 22uv run pyrightto verify type safety (passes ✓)Backward Compatibility
Existing target configurations without the
ssh_portfield will automatically use port 22 (standard SSH port), ensuring seamless operation for existing users.🤖 Generated with Claude Code