we can use ssh-keygen to generates a ssh-key. ssh-keygen manages and converts authentication keys for ssh. ssh-keygen can create RSA keys for use by SSH protocol version 1 and RSA or DSA keys for use by SSH protocol version 2. The type of key to be generated is specified with the -t option.
ssh-keygen generate 2 key, private key and public key, id-rsa and id_rsa.pub. we can see it under.ssh directory in our home "/home/username/.ssh/". we can use it for authentication in our server. So Secure and simple.
So Lets doing it :
ssh-keygen -t rsa -C "email@gmail.com"You will be asked for passpharse, but you can leave itu blank and press enter, or can fill with your password. it generate our key, public key and private key.
Tips :
We can increase a key encryption by add 1 option.
ssh-keygen -t rsa -b 4028 -C "email@gmail.com"it will generate a strong encryption. Enjoy and Share.
Title : How to generate ssh-key in ubuntu/CentOS
Description : we can use ssh-keygen to generates a ssh-key . ssh-keygen manages and converts authentication keys for ssh. ssh-keygen can create RSA ...
Description : we can use ssh-keygen to generates a ssh-key . ssh-keygen manages and converts authentication keys for ssh. ssh-keygen can create RSA ...
0 Response to "How to generate ssh-key in ubuntu/CentOS"
Post a Comment