Skip to content

Conversation

@rolandwalker
Copy link
Contributor

Description

If ~/.ssh/config is nontrivial, Paramiko can easily fail to parse it. Catch the failure and exit informatively rather than with a backtrace.

We should be open to the alternative of removing --list-ssh-config, --ssh-config-path, and --ssh-config-host.

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

@rolandwalker rolandwalker self-assigned this Jan 17, 2026
If ~/.ssh/config is nontrivial, Paramiko can easily fail to parse it.
Catch the failure and exit informatively rather than with a backtrace.
@rolandwalker rolandwalker force-pushed the RW/graceful-failure-list-ssh-config branch from 872d51f to aa7502b Compare January 17, 2026 20:20
@rolandwalker rolandwalker requested a review from amjith January 17, 2026 20:27
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.

2 participants