【发布时间】:2013-07-01 01:09:36
【问题描述】:
我正在测试 Windows Azure 的 IaaS 部分,并通过 REST API 成功部署了各种虚拟机实例。启动 VM 的 POST 请求的 XML 正文如下:
<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>
但是,当我尝试使用 Putty 通过 SSH 连接到 VM 时,当我尝试通过用户/密码进行身份验证时,它会显示以下消息(请注意,在 XML 正文中我已指定 DisableSshPasswordAuthentication = false):“断开连接: 没有可用的受支持的身份验证方法(服务器发送:publickey)”。
非常感谢整个 * 社区的帮助。 亚伯。
【问题讨论】:
-
你找到什么了吗?我对另一个 ubuntu 图像有同样的错误:(
-
很遗憾没有。我还在等知道答案的人哈哈哈。我剩下的唯一选择是检查更改指定的图像是否可以解决问题。
-
我似乎无法通过 SSH 连接到使用 API 创建的任何 VM。这很令人沮丧……你有没有发现什么?
-
很遗憾没有。我什么也没发现。 :(。我差不多一年前就放弃了。