-
Notifications
You must be signed in to change notification settings - Fork 243
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
[BUG] Podman preset is broken for linux if known_hosts file contain an existing pub key for 192.168.130.11 #3514
Comments
We saw this issue during QE testing for crc As this feature seems to be introduced on podman
How did you end up with a different key in there? Just in case I also tried with podman from |
Today I used the same host I was using yesterday with Today I just start it again the WARN[0000] ssh host key mismatch for host 127.0.0.1:2222, got key SHA256:jsWTDSKOVr55u+q5PSmEZjoqLfSvNXLFmUq6hjkiXxg of type ecdsa-sha2-nistp256
Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch So it seems the key is not the one generated by
Neither the key from the bundle itself but some other key which also seems somehow different if you run it on different dates. 🤷♂️ ^^ @themr0c this may need to be added as known issue for our |
As per my reading around how ssh connection establish is the key which is added to |
I can reproduce with:
|
Are you sure? I tried yesterday and it did not break, the content when ssh with May you already started
|
I made sure I had no wrong key in |
@adrianriobo have you tried |
yeah that it is, ssh for machine with |
This can also be reproduced with just
|
Would be useful to us if podman had the option Praveen suggested on slack:
|
As a work-around, untill it is handled/resolved from if we just remove the to also work-around the issue in case of system-mode networking (linux) where the VM ip address might change it could be complicated |
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in new podman releases from 4.4.1 whenever the instance identity changes which might occur if you delete and re-create the podman instance, with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
while using the podman preset in CRC the instance identity is added to the known_hosts file and when it changes podman-remote complains about it and shows the following error: ``` Error: failed to connect: ssh: handshake failed: knownhosts: key mismatch ``` this will occur in crc when users upgrade podman from 4.3.1 to 4.4.1 with this patch it'll remove the [127.0.0.1]:2222 entries from known_hosts which should work-around this issue
With #3564 the CRC specific entries are removed from For users's upgrading from 2.15.0 to 2.16.0 to work-around this issue, they should follow the steps:
|
We have to check how to avoid podman remote command to add key to the
.ssh/known_hosts
file or may be remove it before starting the VM.The text was updated successfully, but these errors were encountered: