Setting up Priate Key Access

Setting up Priate Key Access\

An easy way to authenticate with remote git server like GitHub is to use an ssh key pair.

On a CentOs environment, you can generate an ssh key pair like this
ssh-keygen -t rsa -b 4096

Setting up Priate Key Access

After generating the key pair, copy the contents of ~/.ssh/

[root@aryan-34252e5f2 ~]# ssh-keygen -t rsa -b 4096
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/
The key fingerprint is:
SHA256:mTVGOKHkJ7uWbiDVtm0cecEJfTEH53g1mnu8VsPnif4 root@aryan-34252e5f2.mylabserver.c om
The key’s randomart image is:
+—[RSA 4096]—-+
| . o*..+oo..|
| o .o.= .*o..|
| .+ .o+o.oo |
| . o+o=.. .+ |
| . ..+So . =o|
| . . .o+ o.*|
| . .+. . +.|
| o. . . |
| .. ..E |

Published by Aryan Nava

Founder of "BlockchainMind", CTO for two Blockchain startup during 2018, Cloud/DevOps Consultant and Blockchain Trainer

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: