Skip navigation

Connect to your Linux system via SSH for a quick and easy update. This quick little tutorial comes in handy when you are managing multiple Linux systems and need to update them all to the latest and greatest software. Please note; It is strongly recommend that you do NOT try to upgrade your system over the internet since the connection is more prone to disconnect mid-upgrade and that would most likely break your Linux installation.

Requirements:

  • Static IP set for the remote computer
  • SSH Installed on the remote computer
  • APT Installed on the remote computer

Step One

Step One - SSH Remote Upgrade

Connect to the system you want to upgrade ssh adminusername@ip.address.here then press enter. Now type in you password and press enter again. You should now be connected to the remote Linux machine and see its CLI.

Step Two

Step Two - SSH Remote Upgrade

Now type in sudo apt-get update and press enter. This will update the sources, so APT knows what to packages to upgrade.

Step Three

Step Three - SSH Remote Upgrade

Type sudo apt-get upgrade and press enter. Review the updates (if there are any) and type yes to upgrade.

UPDATE: Commenter Jordan has enlightened me that you can issue a screen command to keep your job running even if you close your SSH session, I did some research and found some information on how to do this here and a nice screencast here.

Advertisements

3 Comments

    • Jordan
    • Posted January 15, 2008 at 11:33 pm
    • Permalink

    You could use the screen command so that it continues even if you get disconnected, and thus work over the internet/wireless network. (note, this means you can do the updating from your iphone/other ssh enabled mobile device.

    • max stirner
    • Posted March 18, 2008 at 7:46 pm
    • Permalink

    I use the no-ip on the router or server (very easy to do on linux) to get a free domain name on a dynamic ip address (e.g. dsl connections). No need for a fixed IP.

    • Yohan
    • Posted April 7, 2008 at 7:55 pm
    • Permalink

    Very cool thanks!


2 Trackbacks/Pingbacks

  1. […] Fuente: Infected Project […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: