I am referring to the following tutorial and following the below steps:
SSH Setup and Key Generation
SSH setup is required to do different operations on a cluster such as starting, stopping, distributed daemon shell operations. To authenticate different users of Hadoop, it is required to provide public/private key pair for a Hadoop user and share it with different users.
The following commands are used for generating a key value pair using SSH. Copy the public keys form id_rsa.pub to authorized_keys, and provide the owner with read and write permissions to authorized_keys file respectively.
$ ssh-keygen -t rsa $ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys $ chmod 0600 ~/.ssh/authorized_keys
When I run the first step
$ ssh-keygen -t rsa in my command prompt as shown below:
It's asking me to enter the file for saving. I am new to Linux and wondering which file I would need to enter and in which folder it will get saved?
In the second step, do I need to create
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys