question

Vladimramaj-9781 avatar image
0 Votes"
Vladimramaj-9781 asked ·

Virtual Machine SSH public key connection

I have created VM with authentication set to SSH public key. I set up ssh public key while creating process. There was a form input for the key. VM has been successfully created. But as I tried to connect via MoboXTerm to VM I get an error: No supported authentication methods available (server sent: publickey) What it means not supported method? Now I am not able to connect to VM and I dont see any option to do it in Azure administration. What can I do or what am I doing wrong? Thanks for any help.

azure-virtual-machines
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ManuPhilip avatar image
0 Votes"
ManuPhilip answered ·

Hello @Vladimramaj-9781,

Best approach is to have the Keys Ready (Private and Public).
Use PuttyGen (https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html) to create a key pair.

Public Key can be used while creating the VM and Private key to be loaded in MoboXTerm.


Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

Regards,

Manu

· 4 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I dont understand. I have private and public key. I dont need Putty to generate them. Also the problem is I am not able to connect the server by another way. There was two alternatives. Password and SSH key. I have chose SSH key. Now I am not able to connect to server via MobaXterm.

0 Votes 0 ·

Hi,

Have you loaded the Private Key correctly, while connecting through SSH something like below:

8921-mobi.jpg


0 Votes 0 ·
mobi.jpg (221.9 KiB)

Yes it works. Thnaks a lot. But I am little confused. I though it has to be a public key which is stored on server in authorized_keys to connect from MobaXterm. I dont understand that logic with private key. Private should be stored on my local machine. Can you give me some explanation of this process please? It drives me crazy. I heve installed some servers but I always send ssh-copy-id to server to anable connection. What is this?


0 Votes 0 ·
Show more comments