How to open the website’s root directory via SSH in Hostinger

Locating and reaching the root directory of your website using SSH

Updated 1 month ago

Open your website’s root directory via SSH in Hostinger to work directly with your site’s files from the command line. The root directory is where your website’s files are stored, and by default, this folder is public_html.

Before you start

Navigate to your root directory

Once connected to SSH, run the following command:

cd /home/u123456789/domains/domain.tld/public_html

Replace/home/u123456789/domains/domain.tld/public_html with the value of the root folder path which you copied.

That’s it! You can start working with your website files.

See common SSH commands at Hostinger for other useful commands once you’re in.