-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sshkeys passphrase issue with
mila init
[MT-72] (#93)
* Add `has_passphrase` function and test Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Add passphrase param to test_create_ssh_keypair Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Remove check for number of lines in private key Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Update poetry.lock file Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Increase timeout value for test_create_ssh_keypair Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Fix bug in create_ssh_keypair Signed-off-by: Fabrice <normandf@mila.quebec> * Add `use_shjoin` arg to `display` Signed-off-by: Fabrice <normandf@mila.quebec> * Simplify passing path of keyfile to ssh-keygen Signed-off-by: Fabrice <normandf@mila.quebec> * Simpify sending of ssh key on Windows Signed-off-by: Fabrice <normandf@mila.quebec> * Add a hardcore integration test (not in CI yet) Signed-off-by: Fabrice <normandf@mila.quebec> * Pass passphrase as f"-N='{passphrase}'" Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Simplify and add a docstring to create_ssh_keypair Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Setup ssh keypair if needed during test Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Tweak comment Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Also catch socket.gaierror for Windows errors Signed-off-by: Fabrice <normandf@mila.quebec> * Fix small typing error in utils.py Signed-off-by: Fabrice <normandf@mila.quebec> * Create the parent dir of sshkey in test Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Try to fix ssh-keygen errors on Windows (again) Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Create the SSH dir during test Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Update milatools/cli/init_command.py * Remove the xfails for weird paths for ssh keys Signed-off-by: Fabrice <normandf@mila.quebec> * Fix failing test param on windows Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Apply suggestions from code review Co-authored-by: satyaog <satyaog@gmail.com> * Change has_passphrase Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Fix pre-commit hook issues Signed-off-by: Fabrice Normandin <normandf@mila.quebec> * Remove unused "test" dep group Signed-off-by: Fabrice Normandin <normandf@mila.quebec> --------- Signed-off-by: Fabrice Normandin <normandf@mila.quebec> Signed-off-by: Fabrice <normandf@mila.quebec> Co-authored-by: satyaog <satyaog@gmail.com>
- Loading branch information
Showing
5 changed files
with
201 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters