Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
loading
  1. Home
  2. Getting Started
  3. Hostvento Hosting's Getting Started Guide
  4. Accessing your account
  5. How to access your account using SSH keys
Updated on June 22, 2024

Getting Started

  • Folder icon closed Folder open iconShared Hosting Quick Start Guide
    • How to Change Nameservers in GoDaddy?
    • CloudLinux monitoring and limits
    • How to Create/Edit/Delete User Package with DirectAdmin?
    • How to Change the Time-zone in Webmail?
    • How to Add Email Filters from Webmail?
    • How to Claim Your Free .online Domain at Hostvento?
    • Managed WordPress Quick Start Guide
      • How to Update WordPress Installation?
      • How to Install WordPress Locally on Windows?
    • ProcessWire CMS
    • How to Buy Hosting from hostvento
    • Discover the Steps to Change a Password in Linux
    • How to change Domain Nameservers (DNS) of my Domain?
    • IP Deny Manager
    • What is SSH2 and how to install it
    • How to install eAccelerator on linux cPanel server ?
    • Do you support Magento eCommerce website
    • Discover the PHP Error Messages That Web Designers Should Know About
    • Learn to Use the Group Block in WordPress
    • How to determine the WordPress Version?
    • Learn to monitor blacklisted sites using Dropmysite
    • What is cPanel Hosting: A Complete Guide
    • How To Change The WordPress Auto-Save Interval?
    • Steps to Perform When the phprc File Isn’t Updating
    • How To Install Elgg Through Softaculous?
    • Steps to Redirect URLs Using Nginx
    • Using SMTP authentication to send email through WordPress
    • How To Configure The Display Options Of WooCommerce?
    • When Will Softaculous Provide With The Latest Version Of A Script/Application?
    • Know How To Set Constant FS_Method
    • How to Find Out the Latest Visitors to Your Website in cPanel?
    • How to Copy or Move Files in cPanel File Manager?
    • What Is a Parked(Alias) Domain and How Do I Set up One
    • Discover the Steps to Change a Password in Linux
    • How To Manage User Roles In Plesk?
    • How To Suspend And Unsuspend Accounts In WHM?
    • How to Connect to MySQL Using Python?
    • How To Change The Logo Of Your AbanteCart Store?
    • How To Create Custom Email Filters In cPanel?
    • How Do I Debug Magento MySQL Problems?
    • How to Add and Delete Email Account in Webuzo?
    • How to Add and Delete Email Account in Webuzo?
    • How to Add and Delete Email Account in Webuzo?
    • Learn to access phpMyAdmin and phpPgAdmin in cPanel
    • How to Restart a Server using Plesk?
    • SMF Hosting FAQ
    • Enable HTML files to display PHP Code
    • How to change your Plesk Password?
    • How to Check the Commission Status from Hostvento Affiliate Dashboard?
  • Folder icon closed Folder open iconUnmanaged VPS Quick Start Guide
  • Folder icon closed Folder open iconReseller Quick Start Guide
  • Folder icon closed Folder open iconUnmanaged Dedicated Server Quick Start Guide
  • Folder icon closed Folder open iconOrdering a hosting package
  • Folder icon closed Folder open iconHow to help secure your website
    • How To Secure Your Website's Software
  • Folder icon closed Folder open iconHostvento Hosting's Getting Started Guide
    • How to use the Knowledge Base
    • Shared Hosting Quick Start Guide
    • Managed WordPress Quick Start Guide
    • Reseller Quick Start Guide
    • Managed Dedicated Server Quick Start Guide
    • Unmanaged Dedicated Server Quick Start Guide
    • Ordering a hosting package
      • How to order a shared web hosting package
      • How to order a reseller hosting package
      • How to order an unmanaged Dedicated Server
      • How to order a managed Dedicated Server
      • How to use Hostvento Hosting coupons and discounts
    • Registering a domain
      • How to choose an effective domain name
      • How to protect your domain name
      • How to register and use internationalized domain names (IDNs)
      • .us Domain Name & Nexus Requirements Guide
      • Requirements for registering Canadian .ca domain names
      • Reactivating an expired domain
      • Validating your domain with ICANN
    • Configuring domain settings
      • Introduction to domain names and DNS
      • How to update the nameservers at third-party registrars
      • How to transfer a domain to Hostvento Hosting
      • How to set the name servers for a domain to point to Hostvento Hosting
      • How to access your web site before DNS propagation is complete
      • How to configure custom name servers
      • How to configure reverse DNS
      • How to set the name servers for a domain at OpenSRS
      • How to set the name servers for a domain registered at GoDaddy
      • How to change your account's primary domain name
      • How to use shared URLs to access your site
      • How to add an SRV record to a domain
      • How to use Anycast DNS with a web hosting account
      • What are subdomains, addon domains, and parked domains?
      • What are wildcard subdomains?
      • How to find the IP address for your hosting account
      • How to configure a .dk hosted custom name server
      • How to check a domain's automatic renewal status
      • How to verify site ownership with Google
      • What is a DNS TXT record?
    • Accessing your account
      • Accessing your hosting control panel
      • How to use SSH (Secure Shell) on Windows and Mac to access your account
      • How to access your account using SSH keys
      • Using FTP (File Transfer Protocol)
      • How to use Secure Copy Protocol(SCP) to transfer files securely on Windows and Mac
      • How to set up SFTP access for multiple users
      • How to use SSHFS (Secure Shell Filesystem)
      • How to use the SolusVM control panel to administer an unmanaged VPS
      • How to disable SSH logins for the root account
      • How to enable two-factor authentication for SSH
      • Warning message when you try to connect to a server using SSH
      • How to keep SSH connections alive
      • 'Output truncated' message when you try to list files using FTP
      • FTP accounts do not work after FileZilla upgrade
      • 'Too many connections from this IP' error message
      • How to change the SSH server port number
      • How to use FTP with Linux hosting accounts
    • How to set up e-mail for your web site
      • Configuring and accessing your e-mail
      • How to troubleshoot e-mail access problems
      • How to add signatures to webmail
      • An introduction to e-mail protocols
      • Accessing e-mail accounts through webmail
      • How to access e-mail accounts with client applications
      • How to troubleshoot e-mail accounts
      • E-mail client application setup
      • Messages are not copied to the Sent folder when using IMAP
      • How to view e-mail message headers
      • Using external SMTP servers to send e-mail
      • How to troubleshoot Apple (Mac) Mail
      • How to securely monitor e-mail using MailChannels
      • Using a catch-all e-mail address
    • How to migrate your data to Hostvento Hosting
      • Migrating an account from another web host
      • How to migrate e-mail from another host to Hostvento Hosting
      • Differences between site migrations and domain transfers
      • What is included and not included in cPanel migrations?
    • Backing up your data
      • How to back up data on shared hosting and reseller accounts
      • How to use Amazon S3 to back up and restore data
      • How to use Hostvento Cloud Backup
      • How to create e-mail backups
      • How to use Google Drive to back up and restore data
    • How to publish your web site
      • How to create and publish a site with the Hostvento Website Builder
      • How to publish your web site with Sandvox
      • How to publish your website with WebSite X5
      • How to publish your web pages with Google Web Designer
      • How to publish your web site with HTML-Kit
      • How to publish your web site with iWeb
      • How to publish your web site with Web Architect
      • How to publish your web site with PageBreeze
      • How to publish your web site with Dreamweaver
      • How to publish your web site with Web Easy Professional
      • How to publish your web site with Seamonkey
      • How to publish your web site with RapidWeaver
      • How to publish your web site with 90 Second Website Builder
      • How to publish your web site with Microsoft FrontPage
      • How to publish and edit files with UltraEdit
      • How to publish your web site with NetObjects Fusion
      • How to publish your web site with Freeway
      • How to publish and edit files with Sublime Text
      • How to publish your web site with Muse
    • Working with Linux
      • Introduction to Linux commands
      • How to work with compressed files on Microsoft Windows
      • How to edit text files from the command line
      • How to edit .htaccess files
      • How to compress files using cPanel or the command line
    • Internet and networking information
      • How to clear a web browser's cache and cookies
      • How to clear the DNS cache on your computer
      • How to clear the SSL state in a browser
      • Introduction to network troubleshooting
      • How to troubleshoot network connectivity using ping and traceroute
      • How to test DNS with dig and nslookup
      • How to troubleshoot network applications with telnet
      • How to troubleshoot SSL connections with the openssl program
      • Web pages display incorrectly on mobile devices
      • How to reduce backscatter and spam
      • How to check your website for broken links
      • How to troubleshoot network applications with curl
      • How to troubleshoot network applications with PowerShell and tnc
      • How to troubleshoot nameserver errors
      • Off-shore IP addresses
      • Google Chrome error message: "ERR_QUIC_PROTOCOL_ERROR"
      • How to set up a Wi-Fi hotspot on your mobile device
      • How to clear the DNS cache on macOS
      • How to change your DNS provider to reduce DNS propagation delays
    • Hostvento Hosting Policy FAQ
    • Why should I choose Hostvento Hosting?
    • What makes Hostvento Hosting’s service fast?
    • Solid State Drive (SSD) advantages
    • How To Start A Blog
    • How To Launch An eCommerce Website
    • How to determine your account's server name
    • Common web hosting terms and definitions
    • How to start a blog
      • How to start and run a blog
      • How to get started with WordPress
      • How to install and run a Nibbleblog site
      • Beyond WordPress basics
    • Top-level domain (TLD) availability
    • How to start a website on your hosting plan
    • How to determine which data center hosts your account
  • Folder icon closed Folder open iconEasy Website Software Setup Guide
  • Folder icon closed Folder open iconApplication optimization and configuration
    • How to enable the Redis extension for PHP
  • Folder icon closed Folder open iconSoftaculous 1-click application installer
    • When Will Softaculous Provide With The Latest Version Of A Script/Application?
    • How to use the Softaculous WordPress Manager
  • Folder icon closed Folder open iconHow to access the Hostvento Hosting Customer Portal
  • Folder icon closed Folder open iconHow to configure your domain to use Ezoic
  • Folder icon closed Folder open iconHow to back up and restore databases in Plesk
  • Folder icon closed Folder open iconHow to activate and configure Cloudflare ServerShield using the Plesk control panel
  • Folder icon closed Folder open iconHow to manage local backups on Dedicated servers
  • Folder icon closed Folder open iconHow to determine if your hosting account uses CloudLinux
  • Folder icon closed Folder open iconTurboHub: centralized, simplified WordPress site management from Hostvento Hosting

How to access your account using SSH keys

Estimated reading: 12 minutes 166 views

The creation and deployment of SSH keys are covered in this article. You can utilize two-factor authentication for enhanced security or automate Hostvento Hosting account logins with SSH keys.

This article describes how to configure SSH keys using the command line. Alternatively, if your hosting account includes cPanel, you can use its graphical user interface to configure SSH keys. For more information, please see this article.

Using SSH keys

When you log in to your account interactively using an SSH client as described in this article, you must enter a password every time. But what if you want to run an automated process? Perhaps you want to automatically download a database backup at certain times to your local computer. In this scenario, you don’t want to have to manually type your SSH password every time the backup process runs.

Or what if you want to allow multiple users to transfer files securely using SFTP, as described in this article? You would need to give them your cPanel password, which would give them complete access to your account.

You can solve these problems by using SSH keys to connect to your account. SSH keys enable your computer to log in to your Hostvento Hosting account automatically without you typing a password. To use SSH keys, you must first create a public key and private key (also known as a key pair). The client’s private key stays on your local computer, while the public key resides on the Hostvento Hosting server.

Alternatively, you can also create SSH keys and protect them with a passphrase for two-factor authentication. Although this configuration does not enable automatic logins, it does provide an extra layer of security, because you must have the correct key file and know the correct passphrase to access the account.

To set up SSH keys, follow the appropriate procedure below for your computer’s operating system.

Windows operating systems
Older Windows versions

Older versions of Microsoft Windows do not include the SSH suite of programs, so you must download an SSH key generator program first. Hostvento Hosting recommends PuTTYgen, a free program that you can download here. After you have downloaded the PuTTYgen executable to your local computer, you can use it to generate a key pair.

Although PuTTY and PuTTYgen work on Windows 10, as of April 2018 there are native SSH programs included in Windows 10. For more information, see the next section.

To generate and configure a key pair, follow these steps:

  1. Start PuTTYgen.
  2. Under Parameters, click the SSH-2 RSA radio button.
  3. Confirm that the Number of bits in a generated key value is set to 2048.
  4. Click Generate.
  5. Move the mouse around to generate random data. After a few seconds, PuTTYgen creates the key.
  6. You can optionally add a passphrase to the key. If you are generating keys to use for automated processes, you should skip this step. However, if you want to set up two-factor authentication by using key files and a passphrase, then type a password for the key in the Key Passphrase and Confirm Passphrase text boxes.
  7. Click Save public key, choose the folder, type id_rsa.pub in the File name text box, and then click Save.
  8. Click Save private key, choose the folder, type id_rsa.ppk in the File name text box, and then click Save.If you did not specify a key passphrase, PuTTYgen displays a warning. Click Yes to dismiss the warning.
  9. Select all of the text in the Public key for pasting into OpenSSH authorized_keys file text box, right-click on the text, and then click Copy.
  10. Log in to your Hostvento Hosting SSH account using PuTTY.
  11. At the command line on the server, type the following commands:Copymkdir ~/.ssh nano ~/.ssh/authorized_keys
  12. In the nano text editor, paste the public key text that you copied in step 9.
    If you are setting up multiple key pairs, the authorized_keys file may already contain data for other key pairs. If this is the case, then just append the new public key text to the file; do not delete the existing key information.
  13. Press Ctrl+x, type y to save the file, and then press Enter. nano saves the file and exits.
  14. At the command line on the server, type the following commands to set the correct file permissions:
    Copychmod 600 ~/.ssh/authorized_keys chmod 700 ~/.ssh
  15. To close the connection, type exit and then press Enter.

At this point, you have created the SSH key pair and deployed the client’s public key to the Hostvento Hosting server. You are now ready to configure the PuTTY client to connect to your SSH account using the private key.

The following procedure assumes that you have already downloaded and installed the PuTTY client. If you have not already done this, follow the PuTTY setup procedures in this article before proceeding.

To configure PuTTY to use your private key, follow these steps:

  1. Start PuTTY.
  2. In the Category pane, expand SSH, and then click Auth.
  3. Under Authentication Parameters, click Browse.
  4. Locate the id_rsa.ppk file that you created in the previous procedure.
  5. In the Category pane, click Session.
  6. In the Host Name (or IP address) text box, type username@example.com. Replace username with your Hostvento Hosting username, and replace example.com with your site’s domain name.
  7. In the Port text box, type 7822.The default port for SSH is 22. However, Hostvento Hosting uses a different port for security reasons.
  8. Confirm that the Connection type radio button is set to SSH.
  9. In the Saved Sessions text box, type a name for the connection. For example, type Hostvento account.
  10. Click Save.
  11. To connect to your SSH account, double-click the connection name in the list. PuTTY should connect without asking you to type your account password. If you set a passphrase for the key, however, you must type the key passphrase.
Windows 10

As of April 2018, Windows 10 includes native SSH programs. To generate and configure a key pair, follow these steps:

  1. To open the Run dialog box, press Windows key+r.
  2. In the Run dialog box, type cmd and then click OK to open a command prompt window.
  3. At the command prompt, type the following command:Copyssh-keygen
  4. Press Enter when you are asked where to save the key.
  5. You can optionally add a passphrase to the key. If you are generating keys to use in automated processes, you should just press Enter. However, if you want to set up two-factor authentication by using key files and a password, then type a password for the key and then press Enter.
  6. At the command line, type the following command:
    Copymore .ssh/id_rsa.pub
  7. Select the text listed in the file and copy it.
  8. Log in to your Hostvento Hosting account using SSH. At the command line, type the following command, replacing username wih your Hostvento Hosting username, and example.com with your site’s domain name:
    Copyssh -p 7822 username@example.com
  9. At the command line on the server, type the following commands:
    Copymkdir ~/.ssh nano ~/.ssh/authorized_keys
  10. In the nano text editor, paste the public key text that you copied in step 7.
    If you are setting up multiple key pairs, the authorized_keys file may already contain data for other key pairs. If this is the case, then just append the new public key text to the file; do not delete the existing key information.
  11. Press Ctrl+x, type y to save the file, and then press Enter. nano saves the file and exits.
  12. At the command line on the server, type the following commands to set the correct file permissions:
    Copychmod 600 ~/.ssh/authorized_keys chmod 700 ~/.ssh
  13. To close the connection, type exit and then press Enter.

At this point, you have created the SSH key pair and deployed the client’s public key to the Hostvento Hosting server. You are now ready to connect to your SSH account using the private key. To do this, follow these steps:

  1. At the command prompt, type the following command. Replace username with your Hostvento Hosting username, and replace example.com with your site’s domain name:Copyssh -p 7822 username@example.com
  2. The SSH client should connect without asking you to type your account password. If you set a passphrase for the key, however, you must type the key passphrase. When you are connected, the remote server’s command line prompt appears:
    Copyusername@hostname [~]#
  3. You can now run commands on the remote server. For example, to see a listing of the current directory, type ls and then press Enter.
  4. To close the SSH connection when you are done, type exit and then press Enter.
  5. To close the command prompt window, type exit and then press Enter.
Mac OS X and Linux operating systems

Both Mac OS X and Linux include SSH support, so you do not have to download any special programs to generate SSH keys.

To create and configure SSH keys, follow these steps:

  1. Open a terminal window. The procedure to do this depends on the operating system and desktop environment.
    • On Mac OS X, click Applications, click Utilities, and then click Terminal.
  2. At the command prompt, type the following command:
    Copyssh-keygen -t rsa
  3. Press Enter when you are asked where to save the key.
  4. You can optionally add a passphrase to the key. If you are generating keys to use in automated processes, you should just press Enter. However, if you want to set up two-factor authentication by using key files and a password, then type a password for the key and then press Enter.
  5. At the command line, type the following command:
    Copycat ~/.ssh/id_rsa.pub
  6. Select the text in the file and copy it.
  7. Log in to your Hostvento Hosting account using SSH. At the command line, type the following command, replacing username wih your Hostvento Hosting username, and example.com with your site’s domain name:
    Copyssh -p 7822 username@example.com
  8. At the command line, type the following commands:
    Copymkdir ~/.ssh nano ~/.ssh/authorized_keys
  9. In the nano text editor, paste the public key text that you copied in step 6.
    If you are setting up multiple key pairs, the authorized_keys file may already contain data for other key pairs. If this is the case, then just append the new public key text to the file; do not delete the existing key information.
  10. Press Ctrl+x, type y to save the file, and then press Enter. nano saves the file and exits.
  11. At the command line, type the following commands to set the correct file permissions:
    Copychmod 600 ~/.ssh/authorized_keys chmod 700 ~/.ssh
  12. To close the connection, type exit and then press Enter.

At this point, you have created the SSH key pair and deployed the client’s public key to the Hostvento Hosting server. You are now ready to connect to your SSH account using the keys.

To connect to your SSH account using the keys, follow these steps:

  1. Open a terminal window. The procedure to do this depends on the operating system and desktop environment.
    • On Mac OS X, click Applications, click Utilities, and then click Terminal.
  2. At the command prompt, type the following command. Replace username with your Hostvento Hosting username, and replace example.com with your site’s domain name:Copyssh -p 7822 username@example.comIn this command, we explicitly specify the port number, the username, and the hostname. However, you can also define the settings for a remote host in your ~/.ssh/config file as follows:Host example Hostname example.com Port 7822 User username The Host value can be any name you want; it is simply a label for the other settings. The Hostname value is the remote host you want to access, the port number is 7822, and the User value specifies your Hostvento Hosting account username. With this configuration defined, you can connect to the account by simply using the Host value. You do not have to type the port number, username, and hostname each time. The following command demonstrates how to do this:Copyssh example
  3. The SSH client should connect without asking you to type your account password. If you set a passphrase for the key, however, you must type the key passphrase.If you are using a passphrase, you may not want to have to re-type it every time you connect to the remote server. If your computer has OpenSSH version 7.2 or later, you can automatically store the passphrase in the SSH authentication agent. (To determine the OpenSSH version installed on your computer, type ssh -V at the command prompt.) Then when you connect to the remote server, you must type the passphrase the first time, but not for any subsequent connections.
    To do this, add the following lines to your ~/.ssh/config file:Host * AddKeysToAgent yesIf you are using Mac OS X, add the following line as well: UseKeychain yesAlternatively, if you have an older version of OpenSSH installed on your computer, you can type the ssh-add command to manually store the passphrase in the SSH authentication agent for the duration of your login session.If your computer has OpenSSH version 8.8 or later, you may be unable to connect to the server. (To determine the OpenSSH version installed on your computer, type ssh -V at the command prompt.) This is because by default, OpenSSH 8.8 and later versions disable RSA signatures using the SHA-1 hash algorithm.
    To enable RSA signatures with SHA-1 hashes so you can connect to the server, add the following lines to your ~/.ssh/config file:HostKeyAlgorithms +ssh-rsa,ssh-dss PubkeyAcceptedAlgorithms +ssh-rsa,ssh-dss

Still stuck? How can we help?

How can we help?

Was this page helpful? Yes No

Share this Doc

How to access your account using SSH keys

Or copy link

Clipboard Icon
CONTENTS
Leaf Illustration

© 2023 All Rights Reserved by Hostvento