[GH-ISSUE #4050] Error if the $HOME/.ssh/config file contains comments #2802

Closed
opened 2026-02-27 00:54:18 +03:00 by kerem · 2 comments
Owner

Originally created by @JerryLerman on GitHub (Sep 14, 2025).
Original GitHub issue: https://github.com/electerm/electerm/issues/4050

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-2.1.16-linux-amd64.deb

Platform detail (平台详情)

Ubuntu 24.04.3

What steps will reproduce the bug?(重现问题的详细步骤)

An .ssh configuration file that contains a comment (line beginning with #) will fail to process and will present the following messages when started:

08:46:41 debug › error parsing $HOME/.ssh/config
08:46:41 debug › maybe no $HOME/.ssh/config, it is ok

What should have happened?(期望的结果)

There should be no error if the $HOME/.ssh/config file contains comments. This is allowed by ssh

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

Never had this issue in any other terminal app

Additional information(其他任何相关信息)

No response

Originally created by @JerryLerman on GitHub (Sep 14, 2025). Original GitHub issue: https://github.com/electerm/electerm/issues/4050 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-2.1.16-linux-amd64.deb ### Platform detail (平台详情) Ubuntu 24.04.3 ### What steps will reproduce the bug?(重现问题的详细步骤) An .ssh configuration file that contains a comment (line beginning with #) will fail to process and will present the following messages when started: 08:46:41 debug › error parsing $HOME/.ssh/config 08:46:41 debug › maybe no $HOME/.ssh/config, it is ok ### What should have happened?(期望的结果) There should be no error if the $HOME/.ssh/config file contains comments. This is allowed by ssh ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) Never had this issue in any other terminal app ### Additional information(其他任何相关信息) _No response_
kerem closed this issue 2026-02-27 00:54:18 +03:00
Author
Owner

@zxdong262 commented on GitHub (Sep 15, 2025):

Thank you for the feedback, would fix in next release

<!-- gh-comment-id:3290365581 --> @zxdong262 commented on GitHub (Sep 15, 2025): Thank you for the feedback, would fix in next release
Author
Owner

@zxdong262 commented on GitHub (Sep 16, 2025):

fixed in latest release

<!-- gh-comment-id:3296645000 --> @zxdong262 commented on GitHub (Sep 16, 2025): fixed in latest release
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2802
No description provided.