SSH asking for password in Bluemix

687 views Asked by At

I am having issues trying to access my VM in Bluemix. Here are my steps:

I tried two ways:

  • ask Bluemix web page to make a secure key and download it, or

  • generate in my computer and send it to Bluemix web page.

Everything I try results in the same issue: when I ssh into any of my VMs it keeps asking for my password, but Bluemix has no default password and doesn't ask the user to create an access password.

I am using ibmcloud user as I read in other questions. Another point: I know at least two more people having the same problem in their machines. Is there a general problem? Can you help me determine the solution to this error?

Update with console output:

ssh -i ~/.ssh/ibmclound.pub [email protected] 
Enter passphrase for key '/home/claudino/.ssh/ibmclound.pub': 
Enter passphrase for key '/home/claudino/.ssh/ibmclound.pub': 
Enter passphrase for key '/home/claudino/.ssh/ibmclound.pub': 
[email protected]'s password: 
Permission denied, please try again. 
[email protected]'s password:
3

There are 3 answers

5
Mark B On

It sounds like you aren't specifying your SSH key file when you are attempting to connect over SSH. The command should look something like this:

ssh -i path/to/keyfile user@server

If that doesn't work try specifying the verbose option -vvv to get some logging information from the ssh command, and then edit your question to add that information.

0
Olivier On

You should have received a .pem file, mine is Ubuntu.pem. First do a chmod 600 so that the key is not ignored.

chmod 600 /home/someone/Downloads/Ubuntu.pem

Then:

ssh ibmcloud@the_ip_of_your_VM -i /home/someone/Downloads/Ubuntu.pem

This should work.

1
Alex da Silva On

@AndreClaudino the user id is "ibmcloud" and per your first post above it seems you are using "ibmclound" instead.

Please try using ibmcloud user id.