Skip to content

Issues with .ssh/config parsing #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
EA-FR opened this issue Mar 28, 2025 · 0 comments
Open

Issues with .ssh/config parsing #219

EA-FR opened this issue Mar 28, 2025 · 0 comments

Comments

@EA-FR
Copy link

EA-FR commented Mar 28, 2025

I noticed I got "Error: read: Connection reset by peer" every time the application has issues reading my .ssh/config file.

For example, if I had comments at the end of a line, like:

LocalForward 2101 10.0.0.99:9909 # xxxx server VNC

It will trigger the problem, but if I change it to:

# xxxx server VNC
LocalForward 2101 10.0.0.99:9909 

it will work... (note that neither ssh or scp are having any issue with those parameters).

Now I'm having the issue again, and I suspect this is the same kind of parsing problem (I can connect if I rename my .ssh/config before clicking the "connect" button) but I cannot figure out which of the 350+ lines in my .ssh/config is causing issues (and I'd prefer not having to strip all comments because it would become unmaintainable).

I'd like to give more details but if some issues mention a "debug mode" that displays more information, I couldn't find out how to activate it.

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

No branches or pull requests

1 participant