{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2859","repository_url":"https://api.github.com/repos/Azure/azure-xplat-cli","labels_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2859/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2859/comments","events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2859/events","html_url":"https://github.com/Azure/azure-xplat-cli/issues/2859","id":153109859,"number":2859,"title":"ASM: SSH Password Auth is not enabled if ssh port isn't opened","user":{"login":"colemickens","id":327028,"avatar_url":"https://avatars.githubusercontent.com/u/327028?v=3","gravatar_id":"","url":"https://api.github.com/users/colemickens","html_url":"https://github.com/colemickens","followers_url":"https://api.github.com/users/colemickens/followers","following_url":"https://api.github.com/users/colemickens/following{/other_user}","gists_url":"https://api.github.com/users/colemickens/gists{/gist_id}","starred_url":"https://api.github.com/users/colemickens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colemickens/subscriptions","organizations_url":"https://api.github.com/users/colemickens/orgs","repos_url":"https://api.github.com/users/colemickens/repos","events_url":"https://api.github.com/users/colemickens/events{/privacy}","received_events_url":"https://api.github.com/users/colemickens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-04T20:41:42Z","updated_at":"2016-05-04T20:47:01Z","closed_at":null,"body":"CLI version: 0.10.0.\r\n\r\nI think this is tied to the behavior of https://github.com/Azure/azure-xplat-cli/issues/2857.\r\n\r\nIf the user does not specify an ssh port (`-e`) or an ssh key (`--ssh-cert`), but does specify a username and password... the VM will not have password authentication enabled.\r\n\r\nThis means the VM is unreachable. The only way to get access is to deploy VMAccess extension.\r\n\r\nI can see that when I create a VM and open the port (`-e 22`) then the request XML includes an element `<DisablePasswordAuthentication>false</DisablePasswordAuthentication>`. But if the user only specifies a password, without the ssh cert or port, then this element is omitted. I believe this is the source of this behavior."},"comment":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/comments/216997703","html_url":"https://github.com/Azure/azure-xplat-cli/issues/2859#issuecomment-216997703","issue_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2859","id":216997703,"user":{"login":"colemickens","id":327028,"avatar_url":"https://avatars.githubusercontent.com/u/327028?v=3","gravatar_id":"","url":"https://api.github.com/users/colemickens","html_url":"https://github.com/colemickens","followers_url":"https://api.github.com/users/colemickens/followers","following_url":"https://api.github.com/users/colemickens/following{/other_user}","gists_url":"https://api.github.com/users/colemickens/gists{/gist_id}","starred_url":"https://api.github.com/users/colemickens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colemickens/subscriptions","organizations_url":"https://api.github.com/users/colemickens/orgs","repos_url":"https://api.github.com/users/colemickens/repos","events_url":"https://api.github.com/users/colemickens/events{/privacy}","received_events_url":"https://api.github.com/users/colemickens/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T20:47:01Z","updated_at":"2016-05-04T20:47:01Z","body":"(For extra context, I was opening the ssh port manually and then trying to connect and seeing rejection because password auth was not an available auth mechanism presented by the server)"}}