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.1.5] Issue running the command mila init #129

Open
alzambranolu13 opened this issue Sep 17, 2024 · 0 comments
Open

[v0.1.5] Issue running the command mila init #129

alzambranolu13 opened this issue Sep 17, 2024 · 0 comments

Comments

@alzambranolu13
Copy link

What command did you run?

mila init

Describe the bug

When introducing password after mila init command I get following traceback.

Connection closed by 172.16.2.25 port 2222
Traceback (most recent call last):
  File "/home/alejandra/anaconda3/lib/python3.12/site-packages/milatools/cli/commands.py", line 89, in main
    mila()
  File "/home/alejandra/anaconda3/lib/python3.12/site-packages/milatools/cli/commands.py", line 146, in mila
    return function(**args_dict)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/alejandra/anaconda3/lib/python3.12/site-packages/milatools/cli/commands.py", line 529, in init
    success = setup_passwordless_ssh_access(ssh_config=ssh_config)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alejandra/anaconda3/lib/python3.12/site-packages/milatools/cli/init_command.py", line 256, in setup_passwordless_ssh_access
    success = setup_passwordless_ssh_access_to_cluster("mila")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alejandra/anaconda3/lib/python3.12/site-packages/milatools/cli/init_command.py", line 347, in setup_passwordless_ssh_access_to_cluster
    here.run(
  File "/home/alejandra/anaconda3/lib/python3.12/site-packages/milatools/utils/local_v1.py", line 47, in run
    return subprocess.run(
           ^^^^^^^^^^^^^^^
  File "/home/alejandra/anaconda3/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('ssh-copy-id', '-i', '/home/alejandra/.ssh/id_rsa', '-o', 'StrictHostKeyChecking=no', 'mila')' returned non-zero exit status 1.

Desktop

  • OS: Ubuntu 24.04

Additional context

Everytime I try to connect to any cluster via ssh @login.server.mila.quebec -p 2222
I get ssh <user>@login.server.mila.quebec -p 2222

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

1 participant