SSH for password less logins on remote server
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY alfred.paul
3 years ago
SSH
0
comments comment

SSH keys are a way to identify computers, without using passwords. If you have used git, or if you are an active participant in the open-source community, you will be definitely familiar with the important role of SSH. In the case of remote servers, when using SSH logins, the server will ask for password each time you try to login. This could be avoided by adding public key to server's authorized_keys.

First, use the command given below to create SSH key pair.

ssh-keygen

and follow the onscreen instructions.A public key - private key pair should be created inside the .ssh folder of your home folder.

To copy your public key to server, use the below command

ssh-copy-id @

If this method doesn't work (there is a probability that ssh-copy-id is not present in the system), you can use the below command

cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"

(Assuming that your public key file name is id_rsa.pub)

We are one of the leading Drupal development companies in India. We will be happy to offer you offshore Drupal development services to help you maintain your website. Please feel free to contact us to know more.


RELATED ARTICLE

more_horiz
close

on 16th November 2012 / by sandeep.sasikumar
Most web developers & system administrators have to do SSH logins to WHM based servers to make the necessary changes there. The default port used for ssh logins is port 22. However there might be unusual circumstances where port 22 is not the default port. In such a scenario we need to identify the default ssh-port used by the server. If you are facing a similar situation then read on to know how to find out the current port being used by SSH on a WHM based server. Linux Networking WHM Network Security cPanel Web Security SSH Leave a reply Your email address will not be published. Required fields are marker * Talu (not verified) access_time 18 Aug 2019 - 20:15 Hi: Thanks for this article, I was forgoten the port of my ssh but in the last version of WHM (11.38.2 build 7) or on my server, the 'ConfigServer Explorer' option is not available so I find the port on the firewall settings 'ConfigServer Security & Firewall' under 'Allow incoming TCP ports' and descarting the default know ports such as ftp, web, etc. http://www.talu.me/ Add new comment
SSH
more_horiz
close

on 14th April 2014 / by sandeep.sasikumar
SSH Protocol's features can be changed using the sshd_config file.The sshd_config file is the ma SSH Leave a reply Your email address will not be published. Required fields are marker *
SSH
more_horiz
close

on 05th February 2015 / by sandeep.sasikumar
The sshd_config file refers to the main configuration file that allows the user to make the changes in the features of SSH protocol. There are many features for this protocol and these can be made or changed according to the users needs. And by making configuration changes it also allows the user to provide more security to server/system that we are using. Some of the main features are listed below. SSH Leave a reply Your email address will not be published. Required fields are marker *
Leave a reply
Your email address will not be published. Required fields are marker *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.