Skip to content

Fix SSH port from CLI being overridden by ~/.ssh/config#1062

Open
sho29 wants to merge 1 commit intovanhauser-thc:masterfrom
sho29:master_sho29
Open

Fix SSH port from CLI being overridden by ~/.ssh/config#1062
sho29 wants to merge 1 commit intovanhauser-thc:masterfrom
sho29:master_sho29

Conversation

@sho29
Copy link

@sho29 sho29 commented Feb 14, 2026

Fixing issue recommended by issue#1039

  1. Changes made to two files that call ssh_options_parse_config() before ssh_options_set so that command-line port takes priority over config file defaults.
  2. libssh's ssh_connect() auto parses config files and overrides previously set options. By explicitly parsing first, then setting the port, the CLI value wins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant