- Go to bash/command line/terminal on your client device.
- Enter the commands:
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
- At this point you will be prompted:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/b/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/b/.ssh/id_rsa.
Your public key has been saved in /home/b/.ssh/id_rsa.pub.
Your public and private keys are now available in your home folder under the .ssh directory.