How to access the SSH in shared Linux?



What Is SSH?

SSH is secure shell its essential tool to master as a system administrator is SSH.

SSH, or Secure Shell, is a protocol used to log in to server securely. It is the most common way to access remote Linux and Unix-like servers.

SSH can be used in Linux and windows OS using the software tools. For linux you can use your terminal to connect and windows you can use PUTTY or KITTY softwares.

How to access the SSH in shared hosting?

In shared hosting you will be having restriction for all your access. Hosting providers will set a limits and restriction as per their plans or their terms.

For SSH access in shared Linux hosting, The provider has to enable the SSH Access for your account. If it's already been enabled, you can use the below steps to connect the SSH using the Putty.

In Windows

You need putty software to be installed in your local.

Now you need to generate a PPK key through your Cpanel.

Step 1 ~ Login to cpanel and click on the SSH.





Step ~ Click on the Manage SSH Keys




Step 3 ~ Now you need to enter password and generate a key and save the password in any notepad.



Step 4 ~ once key generated click on GO Back and you can see the Key generated, click on manage as mentioned in below screen.




Step 6 ~ You need to Authorise the key which you have generated.






Step 7 ~ Now you need to download the Private key.



Step 8 ~ Enter the password which you have created at the time of generating the key and click on convert.




Step 9 ~  Now you can download the file in local and save it.



Step 10 ~ Now open Putty enter the Server ip and add the RSA key in the putty as mentioned in screen.





Step 11 ~ You can upload the file which you have downloaded and click on open now enter the user and password, the SSH will connect now.




If you are facing any issues you can contact to the support.

What are the advantages of using SSH for managing the website
1. SSH is more secure network connection when compared to FTP.
2. Cache Clearing in the server can be done easily through ssh in seconds, when compared to FTP Login Or Panel Login.
3. Very quick in Live Editing and saving the files, though no need of downloading to the Local system.
4. Installing and Mangaing applications via command line.

Why do need SSH to maintain a server
1. Services LIKE mysql, apache, Java etc. can be started Or stopped easily from the server end using SSH.
2. Firewall can be controlled over ssh. For example need to Block or unblock the IPS, we can use SSH.
3. Solving the issues by Checking the Logs in the server end.
4. Which service take more load in the server can be able to Monitor Over SSH.
5. Removing the files from the server is very quick over ssh compared to FTP and other protocols.
Login Issues in SSH 

When a domain name is moved from one server to another then an issue with the SSH logins might creep up. Most of the warning dialog which most of the SSH programs gives looks something like as shown below:

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED


IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!

It is also possible that the RSA host key has just been changed.

The fingerprint for the RSA key sent by the remote host is
06:ea:f1:f8:db:75:5c:0c:af:15:d7:99:2d:ef:08:2a.

Please contact your system administrator.

Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.

Offending key in /home/user/.ssh/known_hosts:4

RSA host key for domain.com has changed and you have requested strict checking.

Host key verification failed.



Login Issues in SSH


Here the SSH program will be printing this message and more often the text, it prohibits the user from connecting to the suspicious website. This problem rises when the website has changed the servers and the new servers RSA key which is being transmitted when the authentication is different from that of the old server.

 

In the case of a migration you will be reasonably sure that the RSA key change is not an accident but to connect to the new server one must remove the line in .ssh/known_hosts that will correspond to the domain name. This could be done by editing the ‘known_hosts’ by hand or if the machine is having the Perl installed then you can use this one-liner:

 

perl -p -i -e 's/^example.com.*n//;' ~/.ssh/known_hosts

 

Now you need to substitute the actual domain for example.com by always making sure of including the backslash before the dot. If you are having many domains that have moved you must be repeated this step for each one.

How to use SSH in Linux ?

All modern Unix-like systems (Linux, OS X, BSDs, and others) include a command-line ssh client. To login to your computer from a Unix-like machine, go to a command-line and type:
ssh <username>@<computer name or IP address>
Example:
ssh This email address is being protected from spambots. You need JavaScript enabled to view it. (or) ssh This email address is being protected from spambots. You need JavaScript enabled to view it.
You should get the usual password prompt (or be told you can't log in, if passwords are disabled).See ssh keys if you want to authenticate using keys instead of passwords.