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

SSH fingerpring #605

Open
YuriOsokin opened this issue Jun 29, 2024 · 1 comment
Open

SSH fingerpring #605

YuriOsokin opened this issue Jun 29, 2024 · 1 comment

Comments

@YuriOsokin
Copy link

In the scripts, during connection to a new machine, openSSH requests to accept the fingerprint. It pops up a new window. However, this is not comfortable. I did not find any option to accept the fingerprint autometically, such as AutoAddPolicy policy in paramiko. Not typing 'yes' in the popup leads to "Host key verification failed".

I see that popup happens during subprocess run, but I did not find any solution to disable the check only for the current run. All the solutions are to disable the check completely.

image

@gabrieldemarmiesse
Copy link
Owner

Python-on-whales uses the normal docker client underneath. Meaning that it's the same issue you would have if you were to call docker in a bash script. The docker client uses the SSH client of the system (linux or windows or mac). So the normal fingerprinting issues apply.

In general, when you want to automate adding fingerprints when scripting with ssh, you can use ssh-keyscan. That's the solution I would recommend.

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

No branches or pull requests

2 participants