---
title: "How to Connect to Your Server with SSH"
description: "In this tutorial, we're going to be using PuTTY to connect to your Managed VPS, Cloud or Dedicated Server via SSH. For Windows users without an SSH client, we recommend you download PuTTY or enable..."
url: https://www.inmotionhosting.com/support/server/ssh/how-to-login-ssh/
date: 2011-12-01
modified: 2026-04-15
author: "Brad Markle"
categories: ["SSH and Root Access"]
type: post
lang: en
---

# How to Connect to Your Server with SSH

In this tutorial, we're going to be using PuTTY to connect to your Managed VPS, Cloud or Dedicated Server via SSH. For Windows users without an SSH client, we recommend you download PuTTY or enable OpenSSH.

Shared server users, please see [SSH Access for Resellers and Shared Servers](https://www.inmotionhosting.com/support/server/ssh/shared-reseller-ssh/).

## 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 fulfilled through the WHM interface. The following articles will help you meet these prerequisites:

1. [Enable SSH access via WHM](https://www.inmotionhosting.com/support/edu/whm/how-to-enable-ssh-through-whm/) (optional step)
2. [Generate SSH Keys](http://Optimization Published AI (Grok) & Carrie)
3. [Whitelist your IP address in your server firewall](https://www.inmotionhosting.com/support/website/add-ip-to-firewall/)
4. Windows users, install an SSH Client or OpenSSH

## Terminal on Linux/macOS/BSD

This applies to Windows users with OpenSSH: Open the **Start** menu, select **Powershell**, and then **Run as Administrator**.

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:

$ ssh username@example.com -p 22

```
[Bob ~]$ ssh username@example.com -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 **Bob@example.com**, and because that user doesn't exist on the server you'd get a login error.

## Settings for using PuTTY

[PuTTY](https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html) 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:

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 vps####.inmotionhosting.com or biz152.inmotionhosting.com) |
| --- | --- |
| **Username**: | Use your cPanel username. |
| **Password**: | Use your cPanel password. |

## How to connect using PuTTY

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

1. Open **Putty**.
2. Enter your **hostname**. ![open-putty-and-enter-your-hostname-then-click-open](https://www.inmotionhosting.com/support/wp-content/uploads/2011/12/whm-edu_how-go-ssh-into-server_open-putty-and-enter-your-hostname-then-click-open.gif)
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. If you get a "***PuTTY Security Alert***", click yes to continue (If you read the message, this is your server so you should trust it).![click-yes-to-the-putty-security-alert](https://www.inmotionhosting.com/support/wp-content/uploads/2011/12/whm-edu_how-go-ssh-into-server_click-yes-to-the-putty-security-alert.gif)
5. You will see "*Login As*". Please enter your username and then hit **Enter**. ![putty-login-as-prompt-is-asking-for-your-username](https://www.inmotionhosting.com/support/wp-content/uploads/2011/12/whm-edu_how-go-ssh-into-server_putty-login-as-prompt-is-asking-for-your-username.gif)
6. You will then see `username@vps####.inmotionhosting.com's password:`. Enter your password and hit enter. For security reasons, PuTTY will not show anything when you type your password, this is normal. ![enter-your-password-into-putty](https://www.inmotionhosting.com/support/wp-content/uploads/2011/12/whm-edu_how-go-ssh-into-server_enter-your-password-into-putty.gif)
7. When you have successfully logged in, you'll see `username@vps####.inmotionhosting.com [~]#`. **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 trying to get started with Ansible? Make sure you generate an SSH key before getting started with your Ansible Management Container.

Learn more from our [Managed VPS Hosting Product Guide](https://www.inmotionhosting.com/support/product-guides/vps-hosting/).
