This quick post will show the steps to setup SSH access without password, but with passphrase key on Linux CentOS. After completely performed the following steps, you can ssh from one system to another without specifying any password. This steps has been tested on CentOS 6.3 and may working on other CentOS versions and Redhat Enterprise linux versions as well.

  1. Ssh On Centos
  2. Install Ssh Centos
  3. Centos 6 Linux Generate Ssh Key Windows Command Line
  4. Centos 6 Linux Generate Ssh Key Linux
  5. Centos Ssh Key Setup
  6. Generate Ssh Key Windows

Ssh On Centos

Client =
Server =

1. Create Public and private keys from openssh and save it :

Aug 02, 2014  Start Putty and open Connection-SSH-Auth on the left menu, then select the 'privatekey' which was just saved above. 8 Back to the Session on the left menu and connect to the SSH. Nov 30, 2018  Sample SSH key generation process on my Ubuntu Linux desktop I strongly recommend that you set up a passphrase when prompted. How to copy the public key. Now our key paid generated and stored in /.ssh/ directory. You must copy a public SSH key file named /.ssh/ (or /.ssh/ if you created RSA key) to the RHEL 8 server.

2. Change the mode of public key :

3. Make a .ssh directory in the home of the user on server :

Install Ssh Centos

4. From Client, transport the key to the server :

5. Change the key to authorized key in .ssh folder :

View the authorized_keys :

6. Now Connect your server without passsword but with the passphrase key :

Related Posts

  • How to SSH Without Password on Linux

    In this post, i will share with you the steps on how to setup and…

  • How to Setup SSH Login Without Password CentOS / RHEL

    As a system administrator, you plan on using OpenSSH for Linux and automate your daily…

  • How to Setup Linux Login Banner on CentOS 6 / CentOS 7

    Most system administrators have applied linux login banner on their servers. The purpose of this…

  • How to Reset CentOS root Password

    For those who are forgot their CentOS root password, please do not panic. There was…

  • How to Reset User's password on CentOS/RHEL

    There are the simple steps to reset the user's password in CentOS or RHEL server.…

How do I generate ssh RSA keys under Linux operating systems?
You need to use the ssh-keygen command as follows to generate RSA keys (open terminal and type the following command):
ssh-keygen -t rsa
Sample outputs:


Centos 6 Linux Generate Ssh Key Windows Command Line


The -t type option specifies the type of key to create. The possible values “rsa” or “dsa” for protocol version 2. The $HOME/.ssh stores the following two files:

Centos 6 Linux Generate Ssh Key Linux

  • $HOME/.ssh/id_rsa – Your private RSA key
  • $HOME/.ssh/ – Your public RSA key

Please do not share keys file with anyone else. You can upload keys to remote server as follows:
ssh-copy-id [email protected]
Finally, you can login to remote server as follows:
ssh [email protected]
scp file.txt [email protected]:~/data2/

See also:

Centos Ssh Key Setup

  • Howto Linux / UNIX setup SSH with DSA public key authentication (password less login)
  • sshpass: Login To SSH Server / Provide SSH Password Using A Shell Script
  • keychain: Set Up Secure Passwordless SSH Access For Backup Scripts

Generate Ssh Key Windows


Coments are closed
Scroll to top