Sales:  800-573-7846 or Live Chat

The ServInt Source

SSH Basics, Part I: Accessing Your Server via SSH

tech bench 2 Many of us use FTP to transfer and modify files server side. In most cases it’s just fine. However, there are situations where you need something more powerful. That’s where SSH (Secure Shell) comes in. SSH will allow you to bulk rename, find, move and copy files, and much more. All with a few simple commands.

Just a heads up: This is not an article on root access (complete control over everything on the server). If you are a ServInt customer and need root access to your VPS, you need to contact the MST so we can enable it. We deliver your server with root access disabled by default in order to keep your server secure. If you’d like to know more about root access, click here.

Accessing your server

Most of you are using cPanel. Fortunately for you, cPanel automatically sets up the user to be SSH ready when you create the account in WHM. Here are the directions to double check, which I suggest doing to familiarize yourself with the interface/tool:

cPanel users

I’m visual, and I hope you are too, so here is a picture:

Manage-Shell-Access

The photo shows us using the search tool in the top left of WHM to find Manage Shell Access. This is the tool we need to use to check if the user actually has shell access or not. Just pop into Manage Shell Access and make sure Normal Shell is selected for the user.

No-panel users

So you decided to go with no control panel. If you did and you’re reading this article, you probably want to reconsider things. You should actually know how to SSH in already and even set up users. If you don’t know how, you can read all about cPanel here and submit a ticket in your customer Portal to have the MST switch you over.

Logging into your server via SSH

Once you are sure SSH access has been activated on your server, the next step is to log in.

To log into your VPS from an Intel-based (newer) Mac:

  1. Open the Terminal application (Utilities).
  2. On the command line, enter the ssh command followed by your server’s name and the user you will log in as:

My-MacBook:~ User$ ssh cPanelUser@yourserver.com

  1. When prompted, enter your cPanel user’s password.

To log into your VPS from a Windows machine:

  1. You will need a program such as PuTTY. Download and install it.
  2. Open PuTTY.
  3. enter your server name in the Host Name box.
  4. Select the SSH button (this will automatically set the port to the default: port 22.)
  5. Click Open.
  6. A terminal window opens with a login prompt. Enter your cPanel User
  7. When prompted, enter your cpanel user’s password.

That’s it! You’re in!

You’re probably asking, “What now?” right? Stay tuned for my next article on common and useful commands in SSH.

About Nathan Pierce

Nathan Pierce is an escalated technician in ServInt's Managed Services Team. He has been studying and working in the IT world since 2005 and aspires to become an internet guru.


The ServInt Source | Web Hosting Blog