Wednesday, May 1, 2024

How to generate an SSH Key Pair in Linux ?

 

Generate an SSH Key Pair in Linux 



[aaf@ip-10.0.0.0 ~]$

[aaf@ip-10.0.0.0 ~]$

[aaf@ip-10.0.0.0 ~]$

[aaf@ip-10.0.0.0 ~]$ ssh-keygen -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/aaf/.ssh/id_rsa):

Created directory '/home/aaf/.ssh'.

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/aaf/.ssh/id_rsa

Your public key has been saved in /home/aaf/.ssh/id_rsa.pub

The key fingerprint is:

SHA256:mWZkHs4sTs3rue1E+9dQJXMN+imORLrDlh/IbJxNq4I aaf@ip-10.0.0.0.us-west-1.compute.internal

The key's randomart image is:

+---[RSA 3072]----+

|              ...|

|             .o +|

|        + . .  +.|

|       X *   . ..|

|      o S + . o. |

|     o O @ = ..  |

|     .. # B .  o |

|    E .+ B o  . .|

|       .=o+ ..   |

+----[SHA256]-----+

[aaf@ip-10.0.0.0 ~]$

[aaf@ip-10.0.0.0 ~]$

[aaf@ip-10.0.0.0 ~]$



[aaf@ip-10.0.0.0 ~]$ cat .ssh/id_rsa.pub


ssh-rsa AAAAB3NzaC1yc4ttt546regehtrhrty2EAAAADAQrgregfdvfdhfgjfjfgABAAABgQCoqxYxIvbLOHN0bkqFMe+pFxVyWk4NvD0qQ0JPUADWCujJdzwZWZls7rYwUCVOdfdsfdz3pVaqqzubHQdDVvOMB3drUcyodgfu9D6aYL+oLIHWtbZPjYsadsadada243243249Mf14ewcCOxF0bA2MaPEcZzjXdfdsya0jVJGCg85gfhgfhgfh4VKEJoOqNX82jxTLo+HbHhmwc6xmFRQqpekSLWbdsfdsfds707aZ7kp/rghghgKkDg+p+9asfsdfdsIhGcbIKc8dfdsfds554HN3V6glirulUVbtD2d0ON/DasdasdafghgghodtRzurn1Wkl972vbA79APgfhgfhgfhhWdSwyjnNqIZ8uGDH5fc6CVqnASB7gT7idWccghghhghghgghgha8d8NCzu9d3PIjSfdgfdVaBKGYEgfhgfhrgfduCLny3KdRJcjEqq24IX96prIXF7Zwfgrfrgretgrdw2323r4343tefdtregdfgffdgghghgggghghghghY01eUbxxqqUDRQtFR9KLOx73TfDRBZ8PC8YydFyFbdEpTQyJixu5nu5dtGcDVtqBVMY+f01NzdfgfdgfdgfdwYwnAH9/8Zd7Jwu+f6KE0tAR6FDm01iuQQXvAvk75rNl2szN1c3+82xgabO79yQE2S/Tdnze6OoLpyVMPb5c/ujX+dBc= aaf@ip-10.0.0.0.us-west-1.compute.internal

No comments:

Post a Comment