Hello Mahsa,

Regarding the error you're seeing:

> DEBUG Ignoring error connecting to compute001: Invalid key -- <class 
> 'paramiko.ssh_exception.SSHException'>

My first guess would be that you pointed ElastiCluster to some SSH key
file that it cannot read.

Check your configuration file; you should have some lines like the
following ones:

[login/google]
image_user=riccardo.murri
# ...
user_key_private=~/.ssh/elasticluster
user_key_public=~/.ssh/elasticluster.pub

The lines influencing the SSH logins are the two `user_key_*` ones.

Things to check:

1. *Both files must exist* on the machine where you run `elasticluster
-vvvv start ...`
2. The file name is immaterial (could be `id_rsa` or `id_ed25519` or
`google_cloud_sdk`) but, because of a bug, ElastiCluster can only use
SSH keys of type RSA. To find out what type is the SSH key you're
using, run this command (replace `~/.ssh/elasticluster-dev` with the
path pointed to by `user_key_private` in your config file):

$ ssh-keygen -l -f ~/.ssh/elasticluster-dev
4096 SHA256:9r/pBW5nB2mnFrGIFxuxs8HW4ZVWDUbS/AzMeU3tjRM riccardo.murri@dev (RSA)

If instead of "(RSA)" you get a different code, you will need to
generate an RSA key and use that instead:

1. Create a new RSA key for use with elasticluster:

       ssh-keygen -t rsa -b 4096 -o -a 100 -f ~/.ssh/elasticluster

2. Replace the `user_key_*` lines with the following:

user_key_private=~/.ssh/elasticluster
user_key_public=~/.ssh/elasticluster.pub

If after making these changes you are still running into issues,
please post or send to me via email your configuration file (WARNING:
remove all private data like passwords and access keys!!)

Hope this helps,
Riccardo

-- 
You received this message because you are subscribed to the Google Groups 
"elasticluster" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticluster/CAJGE3zW7L2BX2LLLvbPRhRkdfXTdHbhHUt1S9pYQa2jR7iY%3DsQ%40mail.gmail.com.

Reply via email to