{"id":3245,"date":"2020-04-20T16:39:21","date_gmt":"2020-04-20T21:39:21","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3245"},"modified":"2025-03-19T10:52:52","modified_gmt":"2025-03-19T15:52:52","slug":"reset-unifi-to-factory-defaults-command-line","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/reset-unifi-to-factory-defaults-command-line\/","title":{"rendered":"Reset UniFi to Factory Defaults &#8211; Command Line"},"content":{"rendered":"\n<p>SSH into the UniFi.  Note that the UniFi username and password get updated from the controller.  Refer to <a href=\"https:\/\/www.incredigeek.com\/home\/find-unifi-ssh-credentials\/\">here <\/a>to find username and password.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh ubnt@192.168.1.20<\/pre>\n\n\n\n<p>run the syswrapper.sh script with the restore-default option.  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">syswrapper.sh restore-default &amp;<br>set-default &amp;<\/pre>\n\n\n\n<p><strong><em>Note that this changed.  Used to, you could just run <code>syswrapper.sh restore-default<\/code> and it would reset. Now if you do that, it won&#8217;t reset, you&#8217;ll be able to ping the device, but you can&#8217;t ssh into it meaning you will need to physically reboot it. <\/em><\/strong><\/p>\n\n\n\n<p>Once the device is reset, log in over ssh and reconfigure.<\/p>\n\n\n\n<p>Note that the username and password will now be ubnt\/ubnt<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSH into the UniFi. Note that the UniFi username and password get updated from the controller. Refer to here to find username and password. ssh ubnt@192.168.1.20 run the syswrapper.sh script with the restore-default option. syswrapper.sh restore-default &amp;set-default &amp; Note that &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/reset-unifi-to-factory-defaults-command-line\/\">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":[979],"tags":[8,11,188],"class_list":["post-3245","post","type-post","status-publish","format-standard","hentry","category-unifi","tag-command-line-2","tag-reset","tag-unifi"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3245","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=3245"}],"version-history":[{"count":3,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3245\/revisions"}],"predecessor-version":[{"id":5967,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3245\/revisions\/5967"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}