{"id":1935,"date":"2022-05-05T16:51:40","date_gmt":"2022-05-05T15:51:40","guid":{"rendered":"https:\/\/www.codingfriends.com\/?p=1935"},"modified":"2022-05-05T16:51:40","modified_gmt":"2022-05-05T15:51:40","slug":"azure-devops-git-ssh-config-on-linux","status":"publish","type":"post","link":"https:\/\/www.codingfriends.com\/index.php\/2022\/05\/05\/azure-devops-git-ssh-config-on-linux\/","title":{"rendered":"Azure devops git (ssh) config on linux"},"content":{"rendered":"\n<p>I am using <a rel=\"noreferrer noopener\" href=\"https:\/\/getfedora.org\/\" target=\"_blank\">fedora linux<\/a> as my development environment OS, I love it but when you are working with azure that mainly believes you are using windows.  Then you have to make some changes to your configuration files that windows (may do??) for you.<\/p>\n\n\n\n<p>So, after I created my ssh key for the development, I keep on getting an issue to pull\/push up my local git repo where the CLI would just hang or error out, so after doing the -v (verbose mode)<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>git pull -v<\/p><\/blockquote>\n\n\n\n<p>The issue highlighted itself with the following error message<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Unable to negotiate with 51.104.26.0 port 22: no matching host key type found. Their offer: ssh-rsa<\/p><\/blockquote>\n\n\n\n<p>So, all I did was to update the ~\/.ssh\/config (your local username home directory .ssh config(uration) file. Please note the last bits, the HostkeyAlgorithms and PubkeyAcceptedKeyTypes<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Host ssh.dev.azure.com<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0PreferredAuthentications <strong>publickey<\/strong><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0IdentityFile ~\/your\/key<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0UpdateHostKeys <strong>no<\/strong><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0IdentitiesOnly <strong>yes<\/strong><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0HostkeyAlgorithms +<strong>ssh-rsa<\/strong><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0PubkeyAcceptedKeyTypes +<strong>ssh-rsa<\/strong>,rsa-sha2-256,rsa-sha2-512<\/p><\/blockquote>\n\n\n\n<p>After that, there were no issues, I suppose it is the classic of reading the error message!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am using fedora linux as my development environment OS, I love it but when you are working with azure that mainly believes you are using windows. Then you have to make some changes to your configuration files that windows (may do??) for you. So, after I created my ssh key for the development, I &hellip; <a href=\"https:\/\/www.codingfriends.com\/index.php\/2022\/05\/05\/azure-devops-git-ssh-config-on-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Azure devops git (ssh) config on linux<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[418,48,423],"tags":[425,424,427,426],"class_list":["post-1935","post","type-post","status-publish","format-standard","hentry","category-azure","category-bash-linux","category-devops","tag-azure","tag-devops","tag-git","tag-ssh"],"_links":{"self":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/1935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/comments?post=1935"}],"version-history":[{"count":2,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/1935\/revisions"}],"predecessor-version":[{"id":1937,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/1935\/revisions\/1937"}],"wp:attachment":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/media?parent=1935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/categories?post=1935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/tags?post=1935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}