How To Update Drupal Modules via SSH (Putty)

| Drupal Development | 28 seen

To strengthen Drupal websites security I decided to disable one-click automatic module updates from Drupal dashboard, unfortunately, it makes it harder not even for bad guys to compromise Drupal website but it also makes it harder for Drupal devs.

Now, there are several options you might choose instead, composer being a top of them. But for this article, I will write down how to update modules using SSH.

For Windows, we are going to use Putty:

From your Drupal installation go to the modules folder

cd /sites/all/modules

now, using wget download desired modules and extract:

sudo wget https://ftp.drupal.org/files/projects/file_entity-7.x-2.21.tar.gz
sudo tar -xvzf file_entity-7.x-2.21.tar.gz

Go back to the Drupal website and run updates. Next, you would like to delete tar.gz file from the modules folder

sudo rm file_entity-7.x-2.21.tar.gz
 

Latest articles

Berlin Brandenburg Airport

In April 2026, I had my first experience with Berlin Brandenburg Airport (BER) while flying the Riga–Berlin–Riga route with airBaltic. This was my first time using Berlin’s main international airport, and overall, it left a solid impression—modern, functional, and relatively easy to navigate. About a decade ago, I had the chance to travel through…

Germany |
Embedded thumbnail for Mumbai & Goa / India Trip

Mumbai & Goa / India Trip

It has already become something of a tradition for us - escaping the cold during our daughter’s winter school break and trading grey skies for warmth, color, and a slower rhythm of life. Each year, we carve out about three weeks to leave Tbilisi behind and head somewhere sunnier. And more often than not, that “somewhere” turns out to be India.Our…

India |