Unable to connect to Windows Azure virtual machine through SSH

I am testing the IaaS part for Windows Azure and I have successfully deployed various virtual machine instances using the REST API. The body of the XML POST request to start the virtual machine is as follows:

<Deployment xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Name>Azure</Name> <DeploymentSlot>Production</DeploymentSlot> <Label>Azure IM created VM</Label> <RoleList> <Role i:type="PersistentVMRole"> <RoleName>IMVMRole</RoleName> <OsVersion i:nil="true"/> <RoleType>PersistentVMRole</RoleType> <ConfigurationSets> <ConfigurationSet i:type="LinuxProvisioningConfigurationSet"> <ConfigurationSetType>LinuxProvisioningConfiguration</ConfigurationSetType> <HostName>AzureNode</HostName> <UserName>user</UserName> <UserPassword>Prueba+1111</UserPassword> <DisableSshPasswordAuthentication>false</DisableSshPasswordAuthentication> </ConfigurationSet> <ConfigurationSet i:type="NetworkConfigurationSet"> <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType> <InputEndpoints> <InputEndpoint> <LocalPort>22</LocalPort> <Name>SSH</Name> <Port>22</Port> <Protocol>TCP</Protocol> </InputEndpoint> </InputEndpoints> </ConfigurationSet> </ConfigurationSets> <Label>Azure IM created VM</Label> <OSVirtualHardDisk> <MediaLink>https://XXXXXXX.blob.core.windows.net/vhds/0b11de9248dd4d87b18621318e037d37__RightImage-Ubuntu-12.04-x64-v13.4.vhd</MediaLink> <SourceImageName>0b11de9248dd4d87b18621318e037d37__RightImage-Ubuntu-12.04-x64-v13.4</SourceImageName> </OSVirtualHardDisk> <RoleSize>Small</RoleSize> </Role> </RoleList> </Deployment> 

However, when I try to connect to the virtual machine via SSH using Putty, when I try to authenticate using the user / password, the following message is displayed (note that in the XML tag I indicated that DisableSshPasswordAuthentication = false): "Disabled: There are no authentication methods available ( server sent: publickey) ".

Thank you for that. Abel.

+4
source share
1 answer

In case someone tries to connect to the virtual machine through the command line and not get access to it after successfully connecting via SSH before:

Go to “Reset password” in the “Support + troubleshooting” section of the VM menu, then select “w70“ public SSH key ”and“ Update. ”This will not delete or change the key provided during the initial deployment, so you You can connect as before, after a successful reset.

0
source

Source: https://habr.com/ru/post/1489462/


All Articles