SSH Access

What is Secure Shell (SSH)?

Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote shell services or command execution and other secure network services between two networked computers that connects, via a secure channel over an insecure network, a server and a client (running SSH server and SSH client programs, respectively). SSH is typically used to log into a remote machine and execute commands. It can transfer files using the associated SSH file transfer (SFTP) or secure copy (SCP) protocols. The standard port used to connect through SSH is 22.

Enabling SSH Access.
Shrishti Softech Solutions (P) Ltd supports SSH access on all its Linux (Single Domain, Multi Domain and Reseller) Hosting Servers. SSH Access will be enabled for a cPanel Account on request. You may contact our Support Team at support@ssi.bz to have the access enabled.

 

Connecting to a Server through SSH

SSH connection to Shrishti Softech Solutions (P) Ltd's Linux Hosting Servers will be through a key based authentication.

Generating a SSH Key Pair

The user needs to generate key (public key and private key) pair on his local computer.

For Linux:

Run the below command:

ssh-keygen -t dsa

OR

ssh-keygen -t rsa

The output would be similar to:

Generating public/private dsa key pair.

Enter file in which to save the key (~/.ssh/id_dsa): Press [Enter] key

Enter passphrase (empty for no passphrase): Press [Enter] key

Enter same passphrase again: Press [Enter] key

Your identification has been saved in ~/.ssh/id_dsa

Your public key has been saved in ~/.ssh/id_dsa.pub

The key fingerprint is:

<some string>

              

OR

Generating public/private dsa key pair.

Enter file in which to save the key (~/.ssh/id_dsa): Press [Enter] key

Enter passphrase (empty for no passphrase): Press [Enter] key

Enter same passphrase again: Press [Enter] key

Your identification has been saved in ~/.ssh/id_dsa

Your public key has been saved in ~/.ssh/id_dsa.pub

The key fingerprint is:

<some string>

              

id_dsa or id_rsa is the private key and id_dsa.pub or id_rsa.pub is the public key.

For Windows:

  1. Download PuTTY.
  2. Download PuTTYgen.
  3. Open PuTTYgen.
  4. Select the SSH-2 RSA (or SSH-2 DSA) option and click the Generate button.

 

  1. Move mouse randomly over the empty space below the progress bar to create some randomness in the generated key.

 

  1. Click the Save private Key button, without providing any passphrase.

 

  1. Click Yes on the window asking for confirmation for saving the key without a password.

 

  1. Save the key file with an appropriate name, say ssh_private_key.ppk.

Authorize the SSH Server to use the Public KeyTop

For Linux:

  • Create a directory as .ssh (note the preceding dot) under /home/<username>/ for your hosting package on the remote host. You will then have to create a file named authorized_keys inside this .ssh directory.
  • Copy the content of the local ~/.ssh/id_dsa.pub or ~/.ssh/id_rsa.pub file into the authorized_keys file.

For Windows:

  • Create a directory as .ssh (note the preceding dot) under /home/<username>/ for your hosting package on the remote host. You will then have to create a file named authorized_keys inside this .ssh directory.
  • Copy the content under the Public-Lines section in the file called ssh_private_key.ppk on the local computer.

 

  • Edit the authorized_keys file on the remote host, type the word ssh-rsa (including spaces on both ends of the word) and paste the copied content. Remove the carriage return at end of each line, merging four lines into one single line. Be careful not to delete any characters while doing that. Final output would be similar to:
  • ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAnjXf5VEuIfOHmbNGn7NZAYDjSp8mYK9sDF+RZR75V4gyu3FeaXcAlwA/jwzzgpIvhK2why5t9DtokyInlocq
  • P9SbNd9xOnrvXEV+ImvKiBf4+tFk7uagZJ+CLrr0tK7M4lKskjfad38UF5cJ0+YU24V1sCDs6QTJC4kG3PO1eeE=

                  

Accessing the Remote ServerTop

For Linux:

Run the below command:

ssh -l user remote-server

For Windows:

  1. Open Putty and enter the Remote Host Name or IP Address.

 

  1. In the left menu, click Data under Connection and enter the cPanel username in the Auto-login username field.

 

  1. In the left menu, click Auth under Connection -> SSH and enter the path of the saved private key file.

 

  1. Click the Open button to connect to the server.

 

 

  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

Purchasing a Hosting Order for Internationalized Domain Name (IDN)

In order to purchase a Hosting Order for an Internationalized Domain Name (IDN), you need to...

Modifying the hosts file

What is host file? A hosts file is an address book, situated on your local desktop, that maps a...

Ports open for outgoing connections

Shrishti Softech Solutions (P) Ltd has opened the following ports for outgoing connections on its...

Switching PHP Version

cPanel Hosting Shrishti Softech Solutions (P) Ltd supports PHP 5.2, 5.3 and 5.4 on its cPanel...

SMTP Server settings for sending mails through your website

All Shrishti Softech Solutions (P) Ltd Web Servers have SMTP Server installed and are capable of...