I am running the sandbox on Azure. I am able to login to Ambari, hue and 8080 page. However, the SSH using putty or using web version at port 4200, does not accept any credentials.
Tried root/hadoop Also the user name and password set for this vm at azure. Getting Access denied message. Thoughts? How do reset root password if it helps?
Thanks to everyone for the suggestions. I wanted to give an update as I am able to connect to the prompt, hopefully will help others who have similar environments similar to mine.
My challenge was to get the SSH working from Windows 10 (Surface Pro) where the VM was created in Azure (classic)
Now, I attempted to take the key to existing Azure VM, Settings, Reset Password and change to SSH Public Key. Although, the key was accepted, it did not finish for a long time. The restart did not help. Kept getting Server key was refused.
NOTE: Make sure to write down your username and password. If using ssh public key, ensure you have the corresponding private key. Without it, you won’t be able to access the terminal of the machine.
Log on as root on your sandbox and follow the below procedure
Just press "Enter" when prompted for a passphrase.
[root@hadoop01 ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists. Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is: 6f:40:61:c1:89:a5:f0:f4:8d:6b:01:98:fc:01:fb:d4 root@hadoop01
The key's randomart image is:
Two files will be created in the folder /root/.ssh [
root@hadoop01 ~]# cd /root/.ssh id_rsa id_rsa.pub
Copy the contents of id_rsa.pub to authorized_keys and copy this files to your desktop
Execute the below commands
[hdp@hadoop01 .ssh]$ cat id_rsa.pub >> authorized_keys
copy this authorized_keys to your local desktop/laptop c:\drive or wherever.
Then on your putty under connection>>Ssh>>auth browse and locate the downloaded authoriszed_keys on your computer and import it into putty remember to chose the good algorithm either ssh-1 or ssh-2 RSA
Now you can log on without any issues.
Please let me know if you are succesfully and accept the answer
My problem is that I am running Windows and I cannot connect to terminal mode of the sandbox to run any commands recommended here. I think I have to generate the keys and plug it in Azure, which I assume copies to authorized keys. Still on this step.
I cannot successfully login as root. The enter does not give me a prompt to enter commands. Sample below.
login as: root
root@xxxxx. cloudapp . net 's password:
root@xxxxx . cloudapp . net's password:
Are there specific settings in Putty? I am using machinename.cloudapp.net with port 22, which is same as SSH port in the endpoint at azure. OS on my side is W10.