You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSHConfig keeps trailing comments in values, unlike OpenSSH #2726
OpenSSH 8.9p1 returns the username as admin. Paramiko's current main has the same parser as 5.1.0.
Quoted values also differ. For User "ad # min" # tail, OpenSSH returns ad # min, while Paramiko retains the quotes and trailing comment. User admin#frag matches in both, so stripping every # would be incorrect.
The observed problem is incorrect values from lookup(). These could cause connection or authentication failures if a caller uses them unchanged; downstream consumers have not been tested.
Would matching OpenSSH's token-boundary comment handling be welcome? Regression tests could cover trailing comments, quoted # characters and literal mid-token # characters before changing the parser.
Activity