Thursday, July 8, 2010

Generating SSH keys on Linux

The SSH keys was saved on .ssh directory.
Firsly, make sure you have backup the old ssh keys if you want to backup your ssh keys follow these steps:

> cd ~/.ssh
> ls -al


if the ssh keys already exist, backup your ssh keys

> mkdir key_backup
> cp -rf id_rsa* key_backup
> rm -rf id_rsa*


Now, let's us make a new ssh key and the intruction. See Working with SSH key passphrases

> ssh-keygen -t rsa -C "arul@local.com"


Print out your ssh key

> cat ~/.ssh/id_rsa.pub

No comments:

Post a Comment