Skip to content
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

Delete the known hosts entry when deleting a target #1251

Open
lesslimes opened this issue Feb 12, 2025 · 4 comments
Open

Delete the known hosts entry when deleting a target #1251

lesslimes opened this issue Feb 12, 2025 · 4 comments
Labels

Comments

@lesslimes
Copy link

I was able to notice during the installation of the bastion I had to reinstall a machine which had to carry the same name and same IP and when I wanted to connect me via the warpgate that blocked has all the blow when I was able to notice that the table know host still contained the old key of the preceding machine it would be necessary to remove it at the time of the suppression of the machine on the Web interface and I am on the version v0.12.0

@Eugeny
Copy link
Member

Eugeny commented Feb 12, 2025

Hi, did I understand it correctly that you'd like the known host entry to be removed when the target itself is deleted? I'm not sure if you've actually deleted the Warpgate target when reinstalling the machine. If you didn't, you can remove the known host entry from the admin UI without manually editing the database (I'm assuming that's what you did?)

@lesslimes
Copy link
Author

good evening, to explain what I did I first deleted the virtual machine then I deleted the entry on the web interface of the warpgate I reinstalled the machine I added the new machine on the warpgate with the same name and same IP when connecting it remained blocked on the verification of the know host because it had kept the old in memory or I got it wrong?
(i didn't edit the database manually for the moment)

@Eugeny Eugeny changed the title the know host table is not updated for ssh Delete the known hosts entry when deleting a target Feb 12, 2025
@Eugeny
Copy link
Member

Eugeny commented Feb 12, 2025

Makes sense, thanks for the info! I've updated the title

@lesslimes
Copy link
Author

thanks for your amazing work !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants