---
title: "How to Install Ruby Gems via SSH"
description: "Since Ruby is installed on shared servers, including our Ruby Hosting plans, you have the ability to install gems. Gems are software packages that utilize the Ruby framework. Once they are installed,..."
url: https://www.inmotionhosting.com/support/server/ssh/install-ruby-gems-ssh/
date: 2014-09-05
modified: 2023-09-07
author: "InMotion Hosting Contributor"
categories: ["SSH and Root Access"]
type: post
lang: en
---

# How to Install Ruby Gems via SSH

![How to Install Ruby Gems via SSH](https://www.inmotionhosting.com/support/wp-content/uploads/2022/01/Installing-Ruby-Gems-via-SSH-1024x538.png)

Since **Ruby** is installed on shared servers, including our [Ruby Hosting](https://www.inmotionhosting.com/ruby-hosting) plans, you have the ability to **install gems**. Gems are software packages that utilize the Ruby framework. Once they are installed, the new functionality can be used for your website. In my example, I will be installing [Sass](https://sass-lang.com/documentation/file.SASS_REFERENCE.html), which is an “*extension of css*.”

## How to Install Ruby Gems

1. [Login to your server via SSH](https://www.inmotionhosting.com/support/server/ssh/how-to-login-ssh/).
2. Run the following ruby install command. Be sure to replace **sass** with the actual gem you want to install. gem install sass You should see a response similar to this, based on the gem you install. Successfully installed sass-3.4.2…1 gem installedInstalling ri documentation for sass-3.4.2…Installing RDoc documentation for sass-3.4.2… In this example, you see the the message “**1 gem installed**,” along with the documentation.

Congratulations, now you know how to **Install a Ruby** via SSH using command line! To continue learning, see the [Official Ruby Guides](https://guides.rubygems.org/). [Code Academy](https://www.codecademy.com/en/tracks/ruby) is also a good source for learning to Ruby. Plus, check out our [Ruby Education Channel](/support/edu/ruby/) for more info!
