blog.minskio.co.uk

Content and theme behind minskio.co.uk
Log | Files | Refs

upgrading-ubiquiti-routers-over-ssh.md (1439B)


      1 ---
      2 title: "Upgrading Ubiquiti routers over SSH"
      3 date: 2019-03-27T14:55:00
      4 tags: ["Guides", "Hardware", "Linux", "Networks", "Servers", "Software"]
      5 ---
      6 
      7 In the past, I usually check for ubiquiti router firmware updates via [RSS feed](https://community.ubnt.com/ubnt/rss/board?board.id=Blog_EdgeMAX), and to apply them I open a reverse SSH tunnel to the web interface and upload the file over this tunnel.
      8 This is somewhat inefficient however as you're uploading firmware over a few additional links in a chain that aren't really required.
      9 
     10 
     11 This guide is a simple repurposing of the [following help article](https://help.ubnt.com/hc/en-us/articles/205146110-EdgeRouter-How-to-Upgrade-the-EdgeOS-Firmware#3), albeit somewhat abridged.
     12 
     13 To solve this (and speed up the process in general) you can do the full upgrde via SSH.
     14 
     15 Firstly, you'll want to SSH into your router:
     16 ```
     17 ssh username@routerip
     18 ```
     19 The default username and password are both `ubnt`, but it's highly recommended you change this.
     20 
     21 Then check the currently running firmware version via:
     22 ```
     23 show version
     24 ```
     25 
     26 Then upload the image
     27 ```
     28 add system image https://dl.ubnt.com/firmwares/edgemax/v2.0.x/ER-e100.v2.0.1.5174691.tar
     29 ```
     30 Verify the firmware is the correct version for the model of router you're using.
     31 
     32 Then check the image is installed and will be booted from:
     33 ```
     34 show system image
     35 ```
     36 
     37 Lastly, reboot the router to apply the image:
     38 ```
     39 reboot
     40 ```
     41 
     42 And you're done.