-
Notifications
You must be signed in to change notification settings - Fork 230
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
sss_ssh_knownhostsproxy ignores the -4/-6 ssh option #5690
Comments
I've looked into the source code. Please confirm my understanding of the C code for sss_ssh_knownhostsproxy is correct (https://github.com/SSSD/sssd/blob/master/src/sss_client/ssh/sss_ssh_knownhostsproxy.c). The slimmed down version of the code is below. Essentially, the sequence of events is this:
The man page on getaddrinfo says:
If what I described above is true, then the -4 or -6 option passed to ssh is indeed ignored. It can't possibly be respected given the logic.
|
@alexey-tikhonov, could you confirm my findings |
Hi, I think your analysis is correct. However I'm not sure if there is an easy fix since I'm not sure if the proxy command knows about the original options from the ssh command line. Please note that we might want to deprecate bye, |
Thanks @sumit-bose, the new option could indeed be the solution. Barring that, the Somewhat related, it seems |
Hi,
HTH bye, |
Hi Sumit, Yep, that definitely helps. Thanks much for that insight. Implementing that functionality in the script passed to Thanks again, |
There is bugzilla for that: https://bugzilla.redhat.com/show_bug.cgi?id=1857104 unfortunately there is nothing we can do about it. |
Thank you @pbrezina, this is great info. |
Ssh takes an option for whether exclusively IPv4 or IPv6 are to be used. For the IPv4 variant, the option is
-4
. From the man page:However, when sss_ssh_knownhostsproxy is in the middle with this configuration like so:
The
-4
option is ignored. I'm not sure what other options could be also ignored.Is this a known issue (non-issue?). Is there a workaround?
The text was updated successfully, but these errors were encountered: