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

[v0.0.18] Issue running the command mila init #108

Open
mptouzel opened this issue Mar 26, 2024 · 2 comments
Open

[v0.0.18] Issue running the command mila init #108

mptouzel opened this issue Mar 26, 2024 · 2 comments

Comments

@mptouzel
Copy link

What command did you run?

mila init

Describe the bug

I am following the setup procedure as in the user guide. After successfully installing milatools, 'mila init' command fails with traceback:
File "/home/mptouzel/miniconda3/lib/python3.10/site-packages/milatools/cli/commands.py", line 82, in main
mila()
File "/home/mptouzel/miniconda3/lib/python3.10/site-packages/milatools/cli/commands.py", line 385, in mila
return function(**args_dict)
File "/home/mptouzel/miniconda3/lib/python3.10/site-packages/milatools/cli/commands.py", line 455, in init
success = setup_passwordless_ssh_access(ssh_config=ssh_config)
File "/home/mptouzel/miniconda3/lib/python3.10/site-packages/milatools/cli/init_command.py", line 252, in setup_passwordless_ssh_access
success = setup_passwordless_ssh_access_to_cluster("mila")
File "/home/mptouzel/miniconda3/lib/python3.10/site-packages/milatools/cli/init_command.py", line 298, in setup_passwordless_ssh_access_to_cluster
assert ssh_public_key_path.exists()
AssertionError

Desktop (please complete the following information):

WSL2 on Windows 11

@lebrice
Copy link
Collaborator

lebrice commented Apr 17, 2024

Hi @mptouzel , thanks for posting!
Hmm, this is possibly the same issue as in #109

@wenhao-mila
Copy link

Hi @mptouzel , I came across the same issue weeks ago #140
I fixed it by manually adding the SSH keys.

You can first check if the SSH keys id_rsa and id_rsa.pub by running ls ~/.ssh. If not(which is my case), you can create by running ssh-keygen -t rsa -b 4096 -C "<user>@mila.quebec" then copy it to the server using ssh-copy-id -i ~/.ssh/id_rsa -p 2222 user@login.server.mila.quebec

Hope that helps!

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

3 participants