How to generate an SSH key in linux?

 

 

    To generate an ssh key in linux you have to execute the command ssh-keygen in command line.

    While executing the command you will be prompted for a file where the key will be saved.It will also

    prompt for a password for the key.

       user@localhost: ssh-keygen -t ssa
       Generating public/private ssa key pair.
       Enter file in which to save the key (/home/user/.ssh/id_ssa):
       Enter passphrase (empty for no passphrase):
       Enter same passphrase again:
       Your identification has been saved in id_ssa.
       Your public key has been saved in id_ssa.pub.
       The key fingerprint is:
       16:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 user@localhost

                 Here it creates a private key and public key in the files /home/user/.ssh/id_ssa and

     /home/user/.ssh/id_ssa.pub respectively..The passphrase(password) is used to protect the key.

     This password will be asked when you connect through ssh

 

  • 0 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

How to install ClamAV antivirus from a source code?

    Download the clamAV source from http://www.clamav.net.The latest version is...

Steps to install BFD(Brute Force Detection). using source code

  BFD Brute Force Detection is a modular shell script for parsing applicable logs and...

How to backup a data base in linux through mysql command ?

       If you want to take the backup of a database, follow these steps...

How to restore a database through mysql command ?

           If you want to restore a database, you have to follow...

What are dns records?

       DNS records or zone files are used for mapping urls to an ip,...

Powered by WHMCompleteSolution