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

infinite github.com in know_hosts #168

Closed
xing0231 opened this issue Mar 20, 2023 · 1 comment
Closed

infinite github.com in know_hosts #168

xing0231 opened this issue Mar 20, 2023 · 1 comment

Comments

@xing0231
Copy link

fs.appendFileSync(`${homeSsh}/known_hosts`, '\ngithub.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=\n');

from line 30 to 32 will keep adding the same key to know_hosts over and over by job running. could you add an option to add this to know_hosts or precheck know_hosts has the existing host alreaday? Or run a ssh-keyscan instead by child_process? Thank you!

@mpdude
Copy link
Member

mpdude commented Mar 20, 2023

This is a duplicate of #106, happy to take patches!

@mpdude mpdude closed this as completed Mar 20, 2023
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