Article

Table of Contents
Theme:
Was this article helpful?

15  out of  25 found this helpful

Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $600 by adding new articles.

Connect to a Server Using an SSH Key

Author: David Finster

Last Updated: Wed, Sep 9, 2020
Quickstart Guides Security

This Quickstart Guide describes how to connect to Vultr servers over SSH with a key instead of a password.

Prerequisites

You will need:

  • A Linux, Mac, or Windows workstation

  • A Linux or BSD server instance

  • An SSH key

Before connecting, you'll need to install the public portion of the key on your server. See our guides to create an SSH key, install SSH keys via the Customer Portal, or manually install SSH keys on your server instance.

Connect with a Windows GUI Client

The PuTTY SSH client is part of the PuTTY suite of utilities. It is available for all versions of Windows.

  1. Download the latest version of the PuTTY utilities. We recommend the MSI Windows Installer package.

  2. Install the package and run PuTTY.

  3. Enter the username and IP address (root@192.0.2.123, for example) in the Host Name field. If your server has a domain name, you may use that in place of the IP address.

  4. Select SSH as the connection type.

    Putty Screen 1

  5. In the left-hand menu, select Connection -> SSH -> Auth.

  6. Click the Browse... button and choose your PuTTY private key file with the .ppk extension.

    Putty Screen 2

  7. Click Open to connect to your server.

  8. When finished, end your session with CTRL+D.

Connect via OpenSSH Client

The OpenSSH client is available for Linux, Mac, and Windows 10.

  1. Verify that your workstation has an SSH client installed.

    On Linux and Mac:

    $ ssh -V
    
    OpenSSH_8.0p1, OpenSSL 1.1.1c FIPS  28 May 2019
    

    On Windows:

    C:\> ssh -V
    
    OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
    

    Linux and Mac workstations typically have SSH clients pre-installed. Windows users may need to install SSH by following this guide.

  2. Initiate an SSH connection. Substitute your username and IP address for the example.

    If your SSH key is in the default location ~/.ssh/id_rsa:

    $ ssh example_user@192.0.2.123
    

    If your SSH key is in a different location:

    $ ssh -i /path/to/your/id_rsa example_user@192.0.2.123
    
  3. When finished, end your session with CTRL+D.

More Information

For more information about managing SSH keys, see our other guides:

Want to contribute?

You could earn up to $600 by adding new articles.