{"id":3760,"date":"2020-12-16T11:50:56","date_gmt":"2020-12-16T17:50:56","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3760"},"modified":"2020-12-16T11:52:55","modified_gmt":"2020-12-16T17:52:55","slug":"unable-to-remove-authorized-ssh-keys-from-airos","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/unable-to-remove-authorized-ssh-keys-from-airos\/","title":{"rendered":"Unable to Remove Authorized SSH Keys from AirOS"},"content":{"rendered":"\n<p>For some reason I ran into an issue where I can not remove authorized SSH Keys in AirOS version 6.3.  It redirects to a 404 page and then to the main page.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-14.png\" alt=\"\" class=\"wp-image-3763\" width=\"604\" height=\"470\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-14.png 604w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-14-300x233.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-14-386x300.png 386w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><figcaption>Attempting to remove SSH keys in AirOS<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"470\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-12.png\" alt=\"\" class=\"wp-image-3761\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-12.png 878w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-12-300x161.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-12-768x411.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-12-500x268.png 500w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/a><figcaption>404 Error while attempting to remove SSH keys<\/figcaption><\/figure>\n\n\n\n<p>Thankfully, we can still remove the authorized keys from the command line.  For more information on making changes over SSH, refer to the following post.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-incredigeek wp-block-embed-incredigeek\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"mTemDWl82v\"><a href=\"https:\/\/www.incredigeek.com\/home\/ubiquiti-airos-applying-changes-over-ssh\/\">Ubiquiti AirOS &#8211; applying changes over ssh<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Ubiquiti AirOS &#8211; applying changes over ssh&#8221; &#8212; Incredigeek\" src=\"https:\/\/www.incredigeek.com\/home\/ubiquiti-airos-applying-changes-over-ssh\/embed\/#?secret=HXMZo1bfiR#?secret=mTemDWl82v\" data-secret=\"mTemDWl82v\" width=\"584\" height=\"329\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>SSH into radio.  Replace username and IP address with your radios user and IP.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh ubnt@192.168.1.20<\/pre>\n\n\n\n<p>Open up config file<\/p>\n\n\n\n<p>vi \/tmp\/system.cfg<\/p>\n\n\n\n<p>Search for the lines that contain<\/p>\n\n\n\n<p>the sshd.auth.key and remove them<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"253\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-15-1024x253.png\" alt=\"\" class=\"wp-image-3771\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-15-1024x253.png 1024w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-15-300x74.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-15-768x190.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-15-500x124.png 500w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-15.png 1483w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Remove the sshd.auth.key lines<\/figcaption><\/figure>\n\n\n\n<p>Save the file and write the configuration with<\/p>\n\n\n\n<pre id=\"block-e1e5e1dc-4401-4e67-bcd1-12d6a56b019a\" class=\"wp-block-preformatted\">\/usr\/etc\/rc.d\/rc.softrestart save<\/pre>\n\n\n\n<p>Once the command completes, you should be good to go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For some reason I ran into an issue where I can not remove authorized SSH Keys in AirOS version 6.3. It redirects to a 404 page and then to the main page. Thankfully, we can still remove the authorized keys &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/unable-to-remove-authorized-ssh-keys-from-airos\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,1144],"tags":[642,1145,8,307,221,131,132,974],"class_list":["post-3760","post","type-post","status-publish","format-standard","hentry","category-ubiquiti","category-ubiquiti-command-line","tag-airos","tag-authorized-keys","tag-command-line-2","tag-keys","tag-ssh","tag-ubiquiti-2","tag-ubnt","tag-ui"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3760"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3760\/revisions"}],"predecessor-version":[{"id":3774,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3760\/revisions\/3774"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}