microsoft / oxa-tools

Open edX on Azure Tools
MIT License
36 stars 103 forks source link

SSH public key can't be used at jumpbox and failed during installation #463

Closed regionbbs closed 5 years ago

regionbbs commented 5 years ago

I ran deploy task several times last days, and almost failed, one of failed issues is my id_rsa.pub can't be used to connect jumpbox VM, and I found fail messages about this:

06/19/19 09:46:24 :: openedxctjb has been identified as a member of the 'jumpbox' role
Checking /oxa/oxa-tools/scripts/overrides.sh for overrides
06/19/19 09:46:24 :: Syncing the 'https://github.com/microsoft/oxa-tools.git' repository (Branch='oxa/master.fic', Tag='')
/oxa/oxa-tools ~
Fetching origin
~
/oxa/oxa-tools ~
Already on 'oxa/master.fic'
Your branch is up-to-date with 'origin/oxa/master.fic'.
~
Warning: Permanently added '10.0.0.11' (ECDSA) to the list of known hosts.
Permission denied (publickey).
lost connection
Permission denied (publickey).
06/19/19 09:46:25 :: [ERROR] Mongo installation failed for 10.0.0.11
mail: cannot send message: Process exited with a non-zero status
06/19/19 09:46:26 :: [ERROR] Phase 0 Bootstrap for Mongo & Mysql failed for
mail: cannot send message: Process exited with a non-zero status
06/19/19 09:46:26 :: [ERROR] OXA stamp customization (/oxa/oxa-tools/scripts/install.sh) failed
mail: cannot send message: Process exited with a non-zero status

PS: I use [ssh-keygen -t rsa -b 4096 -f id_rsa] command to generate my SSH keys.

prabhanshu commented 5 years ago

In order to connect to jumpbox you need to connect using private key. Let me know if this resolves your issue.

regionbbs commented 5 years ago

I had used private key to connect to jumbobox, thank you. But issues shown inside logs has still exist.

prabhanshu commented 5 years ago

Just to confirm using private key you are able to connect. If so you can close the issue.