{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/7216","repository_url":"https://api.github.com/repos/Azure/azure-cli","labels_url":"https://api.github.com/repos/Azure/azure-cli/issues/7216/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/7216/comments","events_url":"https://api.github.com/repos/Azure/azure-cli/issues/7216/events","html_url":"https://github.com/Azure/azure-cli/issues/7216","id":356650323,"node_id":"MDU6SXNzdWUzNTY2NTAzMjM=","number":7216,"title":"az acs kubernetes get-credentials fails error Incompatible ssh peer (no acceptable kex algorithm)","user":{"login":"bhushangholave","id":3125166,"node_id":"MDQ6VXNlcjMxMjUxNjY=","avatar_url":"https://avatars3.githubusercontent.com/u/3125166?v=4","gravatar_id":"","url":"https://api.github.com/users/bhushangholave","html_url":"https://github.com/bhushangholave","followers_url":"https://api.github.com/users/bhushangholave/followers","following_url":"https://api.github.com/users/bhushangholave/following{/other_user}","gists_url":"https://api.github.com/users/bhushangholave/gists{/gist_id}","starred_url":"https://api.github.com/users/bhushangholave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhushangholave/subscriptions","organizations_url":"https://api.github.com/users/bhushangholave/orgs","repos_url":"https://api.github.com/users/bhushangholave/repos","events_url":"https://api.github.com/users/bhushangholave/events{/privacy}","received_events_url":"https://api.github.com/users/bhushangholave/received_events","type":"User","site_admin":false},"labels":[{"id":468699060,"node_id":"MDU6TGFiZWw0Njg2OTkwNjA=","url":"https://api.github.com/repos/Azure/azure-cli/labels/ACS","name":"ACS","color":"e99695","default":false},{"id":593424290,"node_id":"MDU6TGFiZWw1OTM0MjQyOTA=","url":"https://api.github.com/repos/Azure/azure-cli/labels/Question","name":"Question","color":"049496","default":false},{"id":419587376,"node_id":"MDU6TGFiZWw0MTk1ODczNzY=","url":"https://api.github.com/repos/Azure/azure-cli/labels/Service%20Attention","name":"Service Attention","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":{"login":"mboersma","id":73019,"node_id":"MDQ6VXNlcjczMDE5","avatar_url":"https://avatars0.githubusercontent.com/u/73019?v=4","gravatar_id":"","url":"https://api.github.com/users/mboersma","html_url":"https://github.com/mboersma","followers_url":"https://api.github.com/users/mboersma/followers","following_url":"https://api.github.com/users/mboersma/following{/other_user}","gists_url":"https://api.github.com/users/mboersma/gists{/gist_id}","starred_url":"https://api.github.com/users/mboersma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboersma/subscriptions","organizations_url":"https://api.github.com/users/mboersma/orgs","repos_url":"https://api.github.com/users/mboersma/repos","events_url":"https://api.github.com/users/mboersma/events{/privacy}","received_events_url":"https://api.github.com/users/mboersma/received_events","type":"User","site_admin":false},"assignees":[{"login":"mboersma","id":73019,"node_id":"MDQ6VXNlcjczMDE5","avatar_url":"https://avatars0.githubusercontent.com/u/73019?v=4","gravatar_id":"","url":"https://api.github.com/users/mboersma","html_url":"https://github.com/mboersma","followers_url":"https://api.github.com/users/mboersma/followers","following_url":"https://api.github.com/users/mboersma/following{/other_user}","gists_url":"https://api.github.com/users/mboersma/gists{/gist_id}","starred_url":"https://api.github.com/users/mboersma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboersma/subscriptions","organizations_url":"https://api.github.com/users/mboersma/orgs","repos_url":"https://api.github.com/users/mboersma/repos","events_url":"https://api.github.com/users/mboersma/events{/privacy}","received_events_url":"https://api.github.com/users/mboersma/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-09-04T04:38:29Z","updated_at":"2019-07-27T00:45:53Z","closed_at":"2019-07-27T00:45:53Z","author_association":"NONE","body":"Describe the bug\r\nsuccessfully login using \r\n```\r\naz login --service-principal -u ${CLIENT_ID} -p ${SECRET_KEY} --tenant ${TENENT_ID}\r\nbut next command to get credentials\r\n```\r\n`az acs kubernetes get-credentials --resource-group=${RESOURCE_GROUP_NAME} --name=${CLUSTER_NAME} -f ${LOCAL_CONFIG_DIR}/kube_config --ssh-key-file ${SSH_FILE_PATH}`\r\n\r\nThis fails with error\r\nIncompatible ssh peer (no acceptable kex algorithm)\r\nTraceback (most recent call last):\r\n File \"/opt/az/lib/python3.6/site-packages/knack/cli.py\", line 197, in invoke\r\n   cmd_result = self.invocation.execute(args)\r\n File \"/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py\", line 369, in execute\r\n   six.reraise(*sys.exc_info())\r\n File \"/opt/az/lib/python3.6/site-packages/six.py\", line 693, in reraise\r\n   raise value\r\n File \"/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py\", line 343, in execute\r\n   result = cmd(params)\r\n File \"/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py\", line 182, in __call__\r\n   return self.handler(*args, **kwargs)\r\n File \"/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py\", line 436, in default_command_handler\r\n   result = op(**command_args)\r\n File \"/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py\", line 955, in k8s_get_credentials\r\n   _k8s_get_credentials_internal(name, acs_info, path, ssh_key_file)\r\n File \"/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py\", line 976, in _k8s_get_credentials_internal\r\n   '.kube/config', path_candidate, key_filename=ssh_key_file)\r\n File \"/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/acs_client.py\", line 72, in secure_copy\r\n   ssh.connect(host, username=user, pkey=pkey, sock=proxy)\r\n File \"/opt/az/lib/python3.6/site-packages/paramiko/client.py\", line 392, in connect\r\n   t.start_client(timeout=timeout)\r\n File \"/opt/az/lib/python3.6/site-packages/paramiko/transport.py\", line 545, in start_client\r\n   raise e\r\n File \"/opt/az/lib/python3.6/site-packages/paramiko/transport.py\", line 1933, in run\r\n   self._handler_table[ptype](self, m)\r\n File \"/opt/az/lib/python3.6/site-packages/paramiko/transport.py\", line 2031, in _negotiate_keys\r\n   self._parse_kex_init(m)\r\n File \"/opt/az/lib/python3.6/site-packages/paramiko/transport.py\", line 2175, in _parse_kex_init\r\n   raise SSHException('Incompatible ssh peer (no acceptable kex algorithm)') # noqa\r\nparamiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable kex algorithm)'.\r\n\r\nTo Reproduce\r\ncreate acs cluster\r\naz login\r\naz acs kubernetes get-credentials\r\n\r\nExpected behavior\r\nI was getting kubeconfig file and suddenly it stops working with this error\r\n\r\nEnvironment summary\r\nInstalled azure-cli from\r\nhttps://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest\r\n\r\nCLI version and info\r\n\r\nazure-cli (2.0.45)\r\n\r\nacr (2.1.4)\r\nacs (2.3.2)\r\nadvisor (0.6.0)\r\nams (0.2.3)\r\nappservice (0.2.3)\r\nbackup (1.2.1)\r\nbatch (3.3.3)\r\nbatchai (0.4.2)\r\nbilling (0.2.0)\r\nbotservice (0.1.0)\r\ncdn (0.1.1)\r\ncloud (2.1.0)\r\ncognitiveservices (0.2.1)\r\ncommand-modules-nspkg (2.0.2)\r\nconfigure (2.0.18)\r\nconsumption (0.4.0)\r\ncontainer (0.3.3)\r\ncore (2.0.45)\r\ncosmosdb (0.2.1)\r\ndla (0.2.2)\r\ndls (0.1.1)\r\ndms (0.1.0)\r\neventgrid (0.2.0)\r\neventhubs (0.2.3)\r\nextension (0.2.1)\r\nfeedback (2.1.4)\r\nfind (0.2.12)\r\ninteractive (0.3.28)\r\niot (0.3.1)\r\niotcentral (0.1.1)\r\nkeyvault (2.2.2)\r\nlab (0.1.1)\r\nmaps (0.3.2)\r\nmonitor (0.2.3)\r\nnetwork (2.2.4)\r\nnspkg (3.0.3)\r\npolicyinsights (0.1.0)\r\nprofile (2.1.1)\r\nrdbms (0.3.1)\r\nredis (0.3.2)\r\nrelay (0.1.1)\r\nreservations (0.3.2)\r\nresource (2.1.3)\r\nrole (2.1.4)\r\nsearch (0.1.1)\r\nservicebus (0.2.2)\r\nservicefabric (0.1.2)\r\nsql (2.1.3)\r\nstorage (2.2.1)\r\ntelemetry (1.0.0)\r\nvm (2.2.2)\r\n\r\nPython location '/opt/az/bin/python3'\r\nExtensions directory '/home/bhushan/.azure/cliextensions'\r\n\r\nPython (Linux) 3.6.5 (default, Aug 22 2018, 23:14:28)\r\n[GCC 7.2.0]\r\n\r\nLegal docs and information: aka.ms/AzureCliLegal\r\nAdditional context\r\nI tried updating az-cli-acs version \r\nAlso tried updating paramiko with version 2.0.2 \r\nFollowed instruction given in \r\n[https://stackoverflow.com/questions/7286929/paramiko-incompatible-ssh-peer-no-acceptable-kex-algorithm](https://stackoverflow.com/questions/7286929/paramiko-incompatible-ssh-peer-no-acceptable-kex-algorithm)\r\nbut still I am getting same error"},"comment":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/comments/515637442","html_url":"https://github.com/Azure/azure-cli/issues/7216#issuecomment-515637442","issue_url":"https://api.github.com/repos/Azure/azure-cli/issues/7216","id":515637442,"node_id":"MDEyOklzc3VlQ29tbWVudDUxNTYzNzQ0Mg==","user":{"login":"yugangw-msft","id":6014209,"node_id":"MDQ6VXNlcjYwMTQyMDk=","avatar_url":"https://avatars1.githubusercontent.com/u/6014209?v=4","gravatar_id":"","url":"https://api.github.com/users/yugangw-msft","html_url":"https://github.com/yugangw-msft","followers_url":"https://api.github.com/users/yugangw-msft/followers","following_url":"https://api.github.com/users/yugangw-msft/following{/other_user}","gists_url":"https://api.github.com/users/yugangw-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/yugangw-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugangw-msft/subscriptions","organizations_url":"https://api.github.com/users/yugangw-msft/orgs","repos_url":"https://api.github.com/users/yugangw-msft/repos","events_url":"https://api.github.com/users/yugangw-msft/events{/privacy}","received_events_url":"https://api.github.com/users/yugangw-msft/received_events","type":"User","site_admin":false},"created_at":"2019-07-27T00:45:53Z","updated_at":"2019-07-27T00:45:53Z","author_association":"CONTRIBUTOR","body":"closing as `az acs` is deprecating"}}
{"actor":{"display_login":"yugangw-msft"}}