Creating a Public and Private RSA Key

April 2018 ยท 1 minutes

Create a .ssh directory:

cd ~
mkdir .ssh
cd .ssh

Generate RSA key pair:

ssh-keygen -b 1024 -t rsa -f id_rsa -P ""

Restrict access to your id_rsa private key:

chmod 400 ~/.ssh/id_rsa