Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

User login prompts for password I never provided #708

Open
j-bettin opened this issue Jan 28, 2020 · 1 comment
Open

User login prompts for password I never provided #708

j-bettin opened this issue Jan 28, 2020 · 1 comment

Comments

@j-bettin
Copy link

Tried to SSH into cluster on Windows 10 using the following https://github.com/Azure/aztk/wiki/SparklyR-on-Azure-with-AZTK
but faced similar issue to #368:
Secrets.yaml seems to be in the right format (public-private key pair is found, password for private key accepted). But no matter if for default user "spark" or a newly created one, I am then asked for a password I never provided, and can hence not access the cluster:

C:\Users\[...] > aztk spark cluster create --id mycluster1 --size 0 --size-low-priority 2
-------------------------------------------
cluster id:              mycluster1
cluster toolkit:         spark 2.3.0
cluster size:            2
     dedicated:      0
     low priority:      2
cluster vm size:         standard_f2
subnet ID:               None
file shares:             0
gpu enabled:             False
docker repo name:        aztk/r-base:latest
wait for cluster:        False
Plugins:
  - rstudio_server
 -------------------------------------------
Cluster mycluster1 is being provisioned.
C:\Users\[...] > aztk spark cluster ssh --id mycluster1
 -------------------------------------------
spark cluster id:              mycluster1
open webui:                   http://localhost:8080
open jobui:                    http://localhost:4040
open jobhistoryui:             http://localhost:18080
plugins:
rstudio_server
    - open:                    http://localhost:8787
ssh username:                  spark
connect:                       True
 -------------------------------------------
The authenticity of host '[51.105.239.1]:50000 ([51.105.239.1]:50000)' can't be established.
ECDSA key fingerprint is SHA[...].
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[51.105.239.1]:50000' (ECDSA) to the list of known hosts.
Password:
spark@[IP]'s password:
Permission denied, please try again.

The issue persists when recreating the key-pair, or registering it on the cluster according to https://docs.quantumatk.com/_downloads/ssh_keys.pdf, p.7.

@manthanthakker
Copy link

This works for me:

  • Create a user manually and ensure that this command returns your rsa key.
aztk spark cluster add-user --id mycluster1 --username yourname
  • You can now use the follwing command to ssh:

aztk spark cluster ssh --id mycluster1 --username yourname
OR
aztk spark cluster ssh --id mycluster1 --username yourname --host

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants