Before generating new SSH key pair first check if you have an SSH key on your local machine.
ls -al ~/.ssh/id_*.pub
If there are existing keys, please move to Step 3
ssh-keygen -t rsa
Press Enter to accept the default file location and file name.
ssh-keygen will ask you to type a secure passphrase. This is optional but we highly recommend it. If you don't want to use a passphrase just press
Verify the SSH keys are generated correctly, you should see two files
Step 3 : Copy the public key to Oscar
You will be prompted for a Password. The public key will be appended to the
authorized_keys file on Oscar.
Step 4 : Login to Oscar using your SSH keys
If everything went well, you will be logged in immediately.