Skip to content

Scripts for automatically updating a remote Linux server over SSH.

License

Notifications You must be signed in to change notification settings

Flightkick/lin-remoteupdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lin-remoteupdate

These scripts can update multiple remote Linux machines over SSH. Currently only works on servers which support apt-get.

Prerequisites

The scripts require sshpass (http://sourceforge.net/projects/sshpass/).

Ubuntu/Debian: apt-get install sshpass
Fedora/CentOS: yum install sshpass
Arch: pacman -S sshpass

Usage instructions

  1. Download the files to your Linux computer (not the server)
  2. Install the prerequisites (see above)
  3. Enable file execution permissions on local.sh if applicable
  4. Open a terminal and run local.sh
  5. Enter the IP's/Hostnames of the servers you would like to update, seperated by a semicolon (;)
  6. Enter a sudoers account name
  7. Enter the specified account's password
  8. Choose the mode to run in:
  • 1 = Auto restart when required
  • 2 = Promt if restart is required
  • 3 = Ignore (do not restart)
  1. Profit!

What does it do?

The local script opens a SSH tunnel to the remote server and does the following: sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get dist-upgrade -y sudo apt-get autoremove -y sudo apt-get clean

After that the script will check if the machine requires a reboot, depending on your choices when running local.sh it will either automatically restart, prompt for restart or ignore the restart.

About

Scripts for automatically updating a remote Linux server over SSH.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages