HostGator Web Hosting Help

SSH Access

SSH/Shell is not enabled by default in Legacy accounts. To enable SSH we will need you to verify your hosting purchase. To do this, please see: How to verify your hosting account. Once this is done SSH access may be enabled in the cPanel.

Bluerock accounts come with SSH/Shell enabled by default.

How to enable SSH from cPanel

  1. Log in to your HostGator cPanel account.
  2. Scroll down to Security, click the SSH/Shell Access icon.
  3. Click the Manage SSH Access button.
  4. Choose Real Shell (Bash) from the drop-down menu.
  5. Click the Submit button.

For additional information on using SSH please see SSH Connections

If you see the error "ERROR: You account must be verified before shell access can be enabled. Please contact our Verification Department to verify your account before continuing." you will need to contact our Verification team to verify your account purchase.

Connecting to your Server via SSH

See the sections for each hosting type above for specifics about which port and username to use.

Windows

To access SSH:

  1. Download WinSCP or PuTTY.
  2. Enter your IP address and the appropriate port number.
  3. Login with your cPanel username and password.

(Port 2222 would be used for shared and reseller accounts, 22 is the default for dedicated & VPS.  Dedicated or VPS have the option of logging in with the root WHM username and password.)

Linux

To connect run the following command from a terminal:

ssh -p 2222 cpanelusr@ip.add.re.ss

Replace cpanelusr with your username and ip.add.re.ss with your IP address.

(Port 2222 would be used for shared and reseller accounts, 22 is the default for dedicated & VPS. Dedicated or VPS have the option of logging in with the root WHM username and password.)

Mac

To open the terminal in Mac go to Applications → Utilities → Terminal

Then type in the following command:

ssh -p 2222 cpanelusr@ip.add.re.ss

Replace cpanelusr with your username and ip.add.re.ss with your IP address.

Port 2222 would be used for shared accounts.



Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

What is SSH and how do I setup secure connections.
Knowledgebase Article 470,492 views tags: bash connect putty shell ssh

This article will instruct you how to import a database from the command line (SSH).
Knowledgebase Article 763,009 views tags: database mysql ssh

This article will instruct you how to export a database from the command line (SSH).
Knowledgebase Article 850,172 views tags: database mysql ssh

Related Help Content

How do I use a secure FTP connection?
Knowledgebase Article 370,030 views tags: ftp secure sftp shell ssh

How do I Access My Account Control Panel?
Knowledgebase Article 850,554 views tags: access alternate control cpanel panel port secure secured

Here is a good list of basic SSH commands.
Knowledgebase Article 486,430 views tags: commands ssh

How to edit several individual pages to replace a string of text e.g. update the phone number on the footer of every page on your site.
Knowledgebase Article 149,848 views tags: command find replace ssh

Why does my FTP connection slow down?
Knowledgebase Article 248,834 views tags: ftp secure slow ssh

How do I create a Public/Private Key Pair in cPanel for use via SSH?
Knowledgebase Article 598,248 views tags: key private public putty ssh windows

How to Transfer hosted files from old host to HostGator.sg via ssh. Your old host must have SSH access to perform this move. Using SSH to transfer files to HostGator
Knowledgebase Article 229,424 views tags: file host site transfer transferring

Script executed with a cron job requires a specific php.ini file to be used.
Knowledgebase Article 217,129 views tags: command cron cronjob crontab custom line optimizer php zend