InMotion Hosting Support Center

Requirements for using SSH to login to your VPS or Dedicated Server

There are a few requirements for using SSH with your VPS or Dedicated Server. These include making sure that your account has been granted SSH access and that your IP address has been added to the firewall. Both of these requirements can be fufilled through the WHM interface. The following articles will help you mee these prerequisites:

  1. Your account has ssh access.
  2. Your IP address has been added to the firewall.
  3. You have a SSH client.

If you are looking for information on how log in via SSH with a shared server, please see SSH access for Resellers and Shared Servers. Click here to learn more about Dedicated Server hosting.

In this tutorial, we're going to be using PuTTY to connect to your VPS or dedicated server via SSH. If you don't already have an SSH client, we recommend that you download PuTTY.

If you are trying to directly connect from a Linux or Mac terminal via SSH, please note the format of the command would need to be in this format:

[Bob ~]$ ssh -p 22

If you do not specify the full username such as username@example, the server would instead try to login as your local user, in this case, and because that user doesn't exist on the server you'd get a login error.

Settings for using PuTTY

PuTTY is a free, open-source terminal emulator written by Simon Tatham that gives you access to SSH. It supports several different network protocols. Before we open PuTTY, you'll need the following settings:

Note! Your hostname and username can be found in the Technical Details of your AMP home page.

Host Name: As your hostname, you can use either your server's ip address, your domain, or your server name (as in or
Username: Use your cPanel username.
Password: Use your cPanel password.

How to connect using PuTTY

In this tutorial, I am using as the host name, "brad" as the cPanel username, and the ******** as the password.

  1. Open Putty.
  2. open-putty-and-enter-your-hostname-then-click-openEnter your hostname.
  3. Click "Open".

    Can't connect? Getting an error message Network Error: Connection timed out? Be sure to add your ip address to the firewall.

  4. click-yes-to-the-putty-security-alertIf you get a "PuTTY Security Alert", click yes to continue (If you read the message, this is your server so you should trust it).
  5. putty-login-as-prompt-is-asking-for-your-usernameYou will see "Login As". Please enter your username and then hit Enter.
  6. enter-your-password-into-puttyYou will then see's password:. Enter your password and hit enter. For security reasons, PuTTY will not show anything when you type your password, this is normal.
  7. When you have successfully logged in, you'll see [~]#.

    Note! If you get an error stating Shell Access is Not Enabled on your server, you will need to contact tech support to have our higher level of support enable the shell access. If you can access your WHM, you can enable SSH through your WHM.

Congratulations, you have now successfully logged into your server via SSH! Are you looking for hosting that supports SSH? Learn what SSH Hosting we have to offer!

Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
User with shell access
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

n/a Points
2018-07-25 3:52 pm

In my ssh window (OSx terminal), I am being asked for a password. NONE that I have entered have worked. So maybe there is a step missing in your explanation because I am clearly NOT logged in and clearly frustrated.

42,946 Points
2018-07-25 4:40 pm
Sorry for the frustration with getting logged into SSH. We need you to provide the steps you're taking in order to determine why you can't log in. Can you list the exact steps you're taking, please? If you want immediate assistance, then please contact our live technical support team (the contact information is at the bottom of this page).
n/a Points
2017-10-25 6:25 pm

Your ignoring the fact there are 1 BILLION Macs in the world!

3,856 Points
2017-10-25 8:39 pm
Thanks for your comment. It is not our intention to ignore Mac OS users. For Mac, the terminal is built-in, so there is no need to use PuTTY. However, our guide does include the SSH command that you would simply enter into the Terminal application included in the Mac OS, to initiate an SSH connection. Here's the excerpt:

If you are trying to directly connect from a Linux or Mac terminal via SSH, please note the format of the command would need to be in this format:

[Bob ~]$ ssh -p 22

If you do not specify the full username such as username@example, the server would instead try to login as your local user, in this case, and because that user doesn't exist on the server you'd get a login error.

We also have a separate guide centered around connecting to SSH via Mac OS's Terminal.

If you need any further assistance, we are always happy to help. Your feedback is very important to us as well! We are always looking for subjects and content that we can create to assist everyone in the community!

Carlos E
n/a Points
2017-04-05 7:05 pm

I'm on a shared service. When trying to connect, I get the error "Server refused our key" after typing in my username.

I followed all of the directions pertaining to putty and key creation.

31,595 Points
2017-04-06 8:58 am
since the steps are different for shared servers, I recommend following our guide on Logging into your Shared/Reseller server with SSH.

Thank you,
n/a Points
2017-04-06 4:28 pm

I was finally able to access because a step was missing (regarding activating the public key).

However, I was looking to install Node.js, but that ability is blocked for shared server subscriptions?

31,595 Points
2017-04-06 4:56 pm
Yes, node.js can only be installed on VPS or Dedicated servers at this time.

Thank you,
n/a Points
2017-03-07 9:09 am
There are options missing from my WHM.
11,043 Points
2017-03-07 3:06 pm
Make sure you have logged in as the root user.
n/a Points
2017-02-13 11:59 am

hi, i have a "web hosting - power plan", to be able to connect via ssh and install node.js i necessary need a vps plan?


43,761 Points
2017-02-13 4:40 pm
Yes, you will need a VPS to install node.js onto your server.
n/a Points
2017-02-06 10:42 pm


I have the "Power Plan" for web hosting, and in the APM I do not have an option for the WHM menu anywhere. Am I missing something here?

13,821 Points
2017-02-07 8:18 am
Power plans are shared hosting. You do not have access to WHM. This article is for VPS and dedicated customers. Here's the article for shared customers
n/a Points
2017-01-16 7:09 am


I have problem when I try access to my ssh from terminal "MacOS"

the message is "Operation timed out

What should I do ? 


Best Regards,


13,821 Points
2017-01-16 9:06 am
Be sure you have added your <a href="">ip address to the firewall</a>. You can do this in WHM.
n/a Points
2016-03-04 8:54 am

Hi all,

I've a Web Hosting with the Domain. I am using a Video Sharing Site that I installed on my Domain via Web Hosting CPanel. But the Video Sharing Site required the ffmpeg module. I've tried so many time to install this module using Perl Mdule in the CPanel. But it could not be installed and give an error.

So anyone here to help me out. Ho can I install ffmpeg module for my Website.

Thanks in Advance


10,077 Points
2016-03-04 10:44 am
Hello Muhammad,

Are you on a shared server? Please keep in mind that ffmpeg can only installed on a VPS or higher package.

Best Regards,
TJ Edens
2015-12-22 9:36 pm
Port should be 2222, however, still cannot connect using just a password. The server responds with a public key.
10,077 Points
2015-12-23 12:35 pm
Hello Locrasto,

For VPS/Dedicated servers the port is 22 not 2222. It is only 2222 if either you change it or you are trying to connect to one of our shared or reseller servers via SSH.

Best Regards,
TJ Edens
n/a Points
2015-08-17 7:26 pm

I am a little fuzzy on your reference to connecting using terminal on a MAC. As PuTTY is not a MAC option.

You have a short info explanation in the blue box:

[Bob ~]$ ssh -p 22

If I understand this then I would enter ssh myusername@vps(mynumber) -p 22

Not sure about the "-p22"

Tried to find an Inmotion video regarding connecting to SSH using terminal. Haven't found yet. Is there one?


43,761 Points
2015-08-17 7:57 pm
Hello Ernest,

Yes, you should be able to use that command via Terminal on the Mac. The -p 22 indicates that it should connect using port 22.

Kindest Regards,
Scott M
n/a Points
2015-03-17 2:22 pm

Un buon server vps richiede molta parsimonia e ponderazione. 

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

25 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!