-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Honoring openssh Includes #2215
Comments
for the record, someone figured out a hack around this problem in paramiko/paramiko#1609 (comment) if i read it correctly, they hardcode a ssh config path in their fabfile.py by hijacking There's also an actual PR in paramiko to add support for the Include parameter directly, in paramiko/paramiko#1892 So if people could test that out or review the code, it would probably help fixing that issue! :) |
Currently the last commit on paramiko/paramiko#2307 breaks fabric, as fabric relies on the Accessing fields that start with an underscore (like the aforementioned Therefore, first, the reason for the usage (of |
I am using includes in my |
@kucharskim - sorry, I wasn't clear: I meant that the fabric code uses parts of paramiko that are prone to changes. |
Is that related to this issue?
…On Thu, 23 Nov 2023 at 23:07, Mészáros Máté Róbert ***@***.***> wrote:
@kucharskim <https://github.com/kucharskim> - sorry, I wasn't clear: I
meant that the fabric code uses parts of paramiko that are prone to changes.
—
Reply to this email directly, view it on GitHub
<#2215 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUBTOWAOI3P64GILKPOA3YF7JKTAVCNFSM53MULXHKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBSGQ4TQNBXHEYA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@davidjmemmett Marginally, but Yes! I have an open pull request into paramiko, that implements the parsing of This would cause a problem in fabric, as currently fabric's implementation relies on that specific field - for example here, on line 231: Lines 221 to 232 in 3342252
This one would be easy to fix - one can simply deepcopy the whole SSHConfig, however, there are more places to check and fix. This is what I tried to refer to when I said
Sorry for the confusion - I hope this clears it up. |
Describe the bug
Is there a way to honor open ssh Include statements somehow? I understand 'Include' is not a supported keyword in paramiko,
but perhaps there are workarounds for when it is in use. If I connect to the host in openssh, can that existing connection be used, instead of issuing a new one?
To Reproduce
Steps to reproduce the behaviour (please attach a minimal example):
Example config
~/.ssh/config
~/.ssh/fabhosts_config
Expected behaviour
I would like to be able to connect to the fabhost1.
Environment
Linux / OpenSSH
The text was updated successfully, but these errors were encountered: