SSH to Azure VM with public keypair

SSH to Azure VM with public keypair

avatar

Hi

How to connect to Azure vm with ssh?

I have download servers public generated keypair

Where do put server ssh public key?

/PA

All Comments (5)

avatar

Hello,

May I ask how you're connecting to your Azure VMs outside of RDM ?

Are you using PowerShell to achieve this ?

Best regards,

avatar

Hi,

I use PowerShell to connect to vm, it would be nice to use RDM instead of Powershell.

ssh -i <path to the .pem file> username@<ipaddress of the VM>

SSH key pair contains both public and private key.

Update!

If I paste in keys in Private Tab, then I can connect.

But I can not connect if a use file option for keys.

/PA

avatar

Hello,

Just to be clear, this means that it is now working ?

Are you getting the behavior you were looking for in RDM ?

Best regards,

avatar

Hi

Yes it works :-)

Thanks

avatar

Hello,

Perfect !

In that case, I'm glad everything is now working.

If you run into any other issues do not hesitate to contact us.

Best regards,