HostGator.com » Support Portal



How do I get and use SSH access?

Yes, we offer SSH (secure shell) access.

Shared Web Hosting

We offer you jailed SSH, which limits access to your account only. You can enable SSH yourself in the HostGator billing tool.

  1. Login to the HostGator billing tool, GatorBill.
  2. Go to 'Hosting Packages' and click 'View Hosting Packages'.
  3. Find the package you want to modify and click on 'Enable Shell Access'.

How do I use it?

You would use port 2222 to connect to the server via SSH and login with your cPanel username and password using the directions below.

Reseller

We offer you jailed SSH, which limits access to your account only. In order to get jailed SSH access, come into Live Chat and request for us to enable this for you. Please note: This is a free service only for the primary domain on the account.

If you would like to activate SSH on a sub-account (separate cPanel), there is a one time charge of $10 per sub-account you would like activated. Please submit the online form.

If you have multiple cPanels which need SSH, then you will need to fill out the form as many times as necessary.

How do I use it?

You would use port 2222 to connect to the server via SSH and login with your cPanel username and password using the directions below.

SEO Hosting

We offer you jailed SSH, which limits access to your account only. In order to get jailed SSH access, come into Live Chat and request for us to enable this for you. Please note: This is a free service for every domain on the account (domain must have its own cPanel).

If you have multiple cPanels which need SSH, then you can simply email support@hostagator.com with a list of the domains.

How do I use it?

You would use port 2222 to connect to the server via SSH and login with your cPanel username and password using the directions below.

Dedicated and VPS

Dedicated and VPS customers automatically have root SSH access. Root shell allows you to change anyone and anything on your server.

If you would like to activate SSH on a sub-account (separate cPanel), simply access WHM with your root login and click the Manage Shell Access link. There you can enable normal and jailed shell for your clients; port 22 for normal and jailed shell.

If you have multiple cPanels which need SSH, you can activate them all within root WHM.

How do I use it?

You would use port 22 to connect to the server via SSH and login with username "root" and your WHM password using the directions below. If you enable shell access for individual cPanels, the SSH username and password would be the same as the cPanel username and password for those accounts.

Root SSH will allow you to access the server processes.


How do I connect to my server via SSH?

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

Windows

To access SSH:

  • Download WinSCP or PuTTY.
  • Enter your IP address and the appropriate port number.
  • 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 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.)


cPanelcPanel is a popular web hosting control panel that helps you manage your hosting account and assists you in creating web sites, managing e-mail addresses, & installing applications to a server.

cPanel is available on all HostGator Linux hosting plans, including Shared Hosting, Reseller Hosting, VPS and Linux Dedicated Servers.

Article Comments

Wil
What commands do you need to run to change all of the folder permissions or all of the file permissions in a particular folder - such as public_html?

HostGator
We use a tool which has this command embedded, and it only changes permissions to 755.

Please email support@hostgator.com for SSH advice.

mike
i'm using DZOIC software for my site, and am not literate in these matters, but doing research in an effort to set up our servers for testing the things we'd like to utilize. here is a link to the DZOIC site's list of requirements; http://www.dzoic.com/requirements.php?product=hs ,which is the least expensive plan that i can obtain SSH full root access too? and will that be needed if i plan to utilize load balance, and a second flash server in order to have video chat/recording capabilities on my site? i do realize that i will need to upgrade from my "baby" account also. thank you in advance!

HostGator
Any of our hosting plans (including Baby) will meet the OpenSocial Plugin Special Requirements.

Only VPS and dedicated server plans will meet the Recordings and Video Chat Special Requirements.

Any of our hosting plans will meet the Minimum and Medium requirements.

Only VPS and dedicated server plans will meet the Maximum requirements.

Chin
Some questions with regards to Shell and Ruby on Rails:
1. I believe I'd need shell account to start my Ruby on Rails app. Is this available free of charge or is there a $10 fee?
2. I don't want to take a reseller-plan. All I want is a regular (business) plan but I'd host multiple sites on it. Do I get a separate cPanel? I don't want one developer to have access to site maintained by another developer. Will each developer have shell for Ruby on Rails activated if I request activation or will I've to request activation for each of the site hosted under my business account? If so, will there be a charge?
3. Can I request installation of additional gems?


HostGator
1. Yes, if you read our ROR help page, it states you will need SSH to start. This access is free for the primary domain's cPanel.

2. On a Business plan, your multiple sites will all use one cPanel. There is only one SSH login, and it is your cPanel username and password.

3. You can request additional gems for free by emailing support@hostgator.com with your list.

Mike
If you use a Mac, Fugu is a nice free graphical interface that will use SSH almost as if you were using an FTP client. Nice. It works with OS X 10.6.2 and probably below. http://rsug.itd.umich.edu/software/fugu/

very bore
cant use wget for get file from old host to new host

HostGator
You must call us or join the live chat to have WGET enabled, first.

Jim
Am I allowed to use reverse ssh on my webhosting plan? (I want to be able to allow people to go through my hostgator website to a local website. So, the hostgator site would relay requests to the local web server. The local web server would be the one to make the initial ssh connection to hostgator).

HostGator
Sounds like you want to use a sort of proxy. That wouldn't be possible on a shared server. You could achieve this on a VPS or dedicated server, but it is not something we would configure for you.

Barry
Could I setup a vpn tunnel?

HostGator
Only on a dedicated server.

Not allowed on VPS, reseller, or shared.

Michael
Is it possible to transfer my site from a dedicated server to a shared plan via SSH, leaving all the permissions intact? (I'm not very knowledgeable when it comes to SSH commands).

HostGator
Sure, we can enable jailed SSH on your shard plan. However, there may be some aspects and settings which you cannot transfer or will need adjustment.

Marco
Awesome, you guys rock...

HostGator
Thank you for your comments. Just a quick reminder that the comments on this page are not monitored by technical support staff, and that for support issues, it is best to contact us by live chat, phone or email so we can assist you right away.

Although comments are not monitored by technical support staff, they are moderated and read by technical writers. Comments will need to be approved by a moderator before appearing.

Our technical writers do read the comments periodically for the purposes of updating the articles, and do appreciate your feedback, suggestions and corrections to the articles themselves, as well as any suggestions or tips for readers of this article. However, support questions posted here are not guaranteed to be replied to in a timely manner or at all. For support issues, it is best to contact our support staff instead by live chat, email or phone.



Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment